File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
src/DurableFunctions.FSharp Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ as the second parameter. Azure Function still has to be defined separately:
76
76
77
77
``` fsharp
78
78
[<FunctionName("SayTyped")>]
79
- let SayHello([<ActivityTrigger>] name) = sayHello .run name
79
+ let SayHello([<ActivityTrigger>] name) = Activity .run sayHello name
80
80
```
81
81
82
82
The orchestrator can now infer types from the activity type:
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ module Activity =
24
24
run = fun x -> f x |> Async.StartAsTask
25
25
}
26
26
27
+ /// Runs the activity
28
+ let run activity = activity.run
29
+
27
30
/// Call an activity by name, passing an object as its input argument
28
31
/// and specifying the type to expect for the activity output.
29
32
let callByName < 'a > ( name : string ) arg ( c : DurableOrchestrationContext ) =
Original file line number Diff line number Diff line change 10
10
<ItemGroup >
11
11
<PackageReference Include =" Microsoft.Azure.WebJobs.Extensions.DurableTask" Version =" 1.7.0" />
12
12
</ItemGroup >
13
+
14
+ <!-- NuGet Publishing Metadata -->
15
+ <PropertyGroup >
16
+ <Title >Azure Functions F# API</Title >
17
+ <Authors >Mikhail Shilkov</Authors >
18
+ <Description >F#-friendly API layer for Azure Durable Functions</Description >
19
+ <PackageReleaseNotes >https://github.com/mikhailshilkov/DurableFunctions.FSharp/releases/</PackageReleaseNotes >
20
+ <PackageTags >Azure;Durable;Extension;Orchestration;Workflow;Functions;FSharp</PackageTags >
21
+ <PackageLicenseUrl >https://github.com/mikhailshilkov/DurableFunctions.FSharp/blob/master/LICENSE</PackageLicenseUrl >
22
+ <PackageProjectUrl >https://github.com/mikhailshilkov/DurableFunctions.FSharp</PackageProjectUrl >
23
+ <IncludeSymbols >true</IncludeSymbols >
24
+ <RepositoryUrl >https://github.com/mikhailshilkov/DurableFunctions.FSharp</RepositoryUrl >
25
+ <RepositoryType >git</RepositoryType >
26
+ <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
27
+ <Version >0.1.0</Version >
28
+ </PropertyGroup >
13
29
</Project >
You can’t perform that action at this time.
0 commit comments