diff --git a/README.md b/README.md index 8a5f0c4..57dc0e5 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ The following Hello World application can be used as a starting point: namespace MyDurableApp open Microsoft.Azure.WebJobs +open Microsoft.Azure.WebJobs.Extensions.DurableTask open DurableFunctions.FSharp module TypedSequence = @@ -71,7 +72,7 @@ module TypedSequence = let SayHello([] name) = Activity.run sayHello [] - let Run ([] context: DurableOrchestrationContext) = + let Run ([] context: IDurableOrchestrationContext) = Orchestrator.run (workflow, context) ``` @@ -115,12 +116,12 @@ let workflow = orchestrator { } ``` -The result of the computation is a function of type `DurableOrchestrationContext -> Task<'a>` +The result of the computation is a function of type `IDurableOrchestrationContext -> Task<'a>` which can be invoked from the orchestrator Azure Function: ``` fsharp [] -let Run ([] context: DurableOrchestrationContext) = +let Run ([] context: IDurableOrchestrationContext) = Orchestrator.run (workflow, context) ``` @@ -280,7 +281,7 @@ let workflow = orchestrator { } [] -let Run ([] context: DurableOrchestrationContext) = +let Run ([] context: IDurableOrchestrationContext) = Orchestrator.runEternal (workflow, context) ```