From 3f54d21f653775bf60652bc6a71f7e09ce479ef8 Mon Sep 17 00:00:00 2001 From: Bart Sokol Date: Wed, 12 Feb 2020 09:36:09 +0100 Subject: [PATCH] Update the docs for DurableTask 2.0+ --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) ```