Skip to content

Commit 6669f9e

Browse files
lilylily
authored andcommitted
addressed feedback
1 parent b2f373f commit 6669f9e

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

articles/azure-functions/durable/durable-functions-isolated-create-first-csharp.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Create your first C# durable function running in the isolated worker"
33
description: Create and publish a C# Azure Durable Function running in the isolated worker using Visual Studio or Visual Studio Code.
44
author: jiayma
55
ms.topic: quickstart
6-
ms.date: 01/26/2023
6+
ms.date: 01/31/2023
77
ms.author: azfuncdf
88
zone_pivot_groups: code-editors-set-one
99
ms.devlang: csharp
@@ -86,6 +86,7 @@ The most basic Durable Functions app contains the following three functions. Add
8686
using Microsoft.Azure.Functions.Worker.Http;
8787
using Microsoft.Azure.Functions.Worker;
8888
using Microsoft.DurableTask;
89+
using Microsoft.DurableTask.Client;
8990
using Microsoft.Extensions.Logging;
9091

9192
static class HelloSequence
@@ -111,15 +112,15 @@ static class HelloSequence
111112
[Function(nameof(StartHelloCities))]
112113
public static async Task<HttpResponseData> StartHelloCities(
113114
[HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequestData req,
114-
[DurableClient] DurableClientContext durableContext,
115+
[DurableClient] DurableTaskClient client,
115116
FunctionContext executionContext)
116117
{
117118
ILogger logger = executionContext.GetLogger(nameof(StartHelloCities));
118119

119-
string instanceId = await durableContext.Client.ScheduleNewOrchestrationInstanceAsync(nameof(HelloCities));
120+
string instanceId = await client.ScheduleNewOrchestrationInstanceAsync(nameof(HelloCities));
120121
logger.LogInformation("Created new orchestration with instance ID = {instanceId}", instanceId);
121122

122-
return durableContext.CreateCheckStatusResponse(req, instanceId);
123+
return client.CreateCheckStatusResponse(req, instanceId);
123124
}
124125
}
125126
```
@@ -170,14 +171,14 @@ Azure Functions Core Tools lets you run an Azure Functions project locally. You'
170171

171172
```json
172173
{
173-
{"name":"HelloCities",
174+
"name":"HelloCities",
174175
"instanceId":"7f99f9474a6641438e5c7169b7ecb3f2",
175176
"runtimeStatus":"Completed",
176177
"input":null,
177178
"customStatus":null,
178179
"output":"Hello, Tokyo! Hello, London! Hello, Seattle!",
179180
"createdTime":"2023-01-31T18:48:49Z",
180-
"lastUpdatedTime":"2023-01-31T18:48:56Z"}
181+
"lastUpdatedTime":"2023-01-31T18:48:56Z"
181182
}
182183
```
183184

@@ -236,7 +237,7 @@ The Azure Functions template creates a project that can be published to a functi
236237

237238
4. Under **Additional information**, use the settings specified in the table that follows the image.
238239

239-
:::image type="content" source="./media/durable-functions-create-first-csharp/functions-isolate-vs-new-function.png" alt-text="Screenshot of create a new Azure Functions Application dialog in Visual Studio.":::
240+
:::image type="content" source="./media/durable-functions-create-first-csharp/functions-isolated-vs-new-function.png" alt-text="Screenshot of create a new Azure Functions Application dialog in Visual Studio.":::
240241

241242
| Setting | Suggested value | Description |
242243
| ------------ | ------- |----------------------------------------- |
@@ -305,6 +306,7 @@ static class HelloSequence
305306
return client.CreateCheckStatusResponse(req, instanceId);
306307
}
307308
}
309+
308310
```
309311
| Method | Description |
310312
| ----- | ----------- |
Loading

0 commit comments

Comments
 (0)