diff --git a/README.md b/README.md index d5d569e..77fea7a 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ as the second parameter. Azure Function still has to be defined separately: ``` fsharp [] -let SayHello([] name) = sayHello.run name +let SayHello([] name) = Activity.run sayHello name ``` The orchestrator can now infer types from the activity type: diff --git a/src/DurableFunctions.FSharp/Activity.fs b/src/DurableFunctions.FSharp/Activity.fs index 41ab880..940cbac 100644 --- a/src/DurableFunctions.FSharp/Activity.fs +++ b/src/DurableFunctions.FSharp/Activity.fs @@ -24,6 +24,9 @@ module Activity = run = fun x -> f x |> Async.StartAsTask } + /// Runs the activity + let run activity = activity.run + /// Call an activity by name, passing an object as its input argument /// and specifying the type to expect for the activity output. let callByName<'a> (name: string) arg (c: DurableOrchestrationContext) = diff --git a/src/DurableFunctions.FSharp/DurableFunctions.FSharp.fsproj b/src/DurableFunctions.FSharp/DurableFunctions.FSharp.fsproj index 3963239..1cec0a3 100644 --- a/src/DurableFunctions.FSharp/DurableFunctions.FSharp.fsproj +++ b/src/DurableFunctions.FSharp/DurableFunctions.FSharp.fsproj @@ -10,4 +10,20 @@ + + + + Azure Functions F# API + Mikhail Shilkov + F#-friendly API layer for Azure Durable Functions + https://github.com/mikhailshilkov/DurableFunctions.FSharp/releases/ + Azure;Durable;Extension;Orchestration;Workflow;Functions;FSharp + https://github.com/mikhailshilkov/DurableFunctions.FSharp/blob/master/LICENSE + https://github.com/mikhailshilkov/DurableFunctions.FSharp + true + https://github.com/mikhailshilkov/DurableFunctions.FSharp + git + true + 0.1.0 + \ No newline at end of file