Skip to content

Commit a3065ff

Browse files
authored
Update durable-functions-http-features.md
1 parent d28efd3 commit a3065ff

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

articles/azure-functions/durable/durable-functions-http-features.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,19 @@ public static async Task CheckSiteAvailableWithPolling(
372372
# [C# (Isolated)](#tab/csharp-isolated)
373373

374374
```csharp
375-
[Function(nameof(CheckSiteAvailable))]
375+
[Function(nameof(CheckSiteAvailableWithPolling))]
376376
public static async Task CheckSiteAvailableWithPolling(
377377
[OrchestrationTrigger] TaskOrchestrationContext context)
378378
{
379379
Uri url = context.GetInput<Uri>();
380380

381381
// Enable HTTP automatic polling on 202 response by setting asynchronousPatternEnabled to true.
382-
DurableHttpResponse response =
383-
await context.CallHttpAsync(HttpMethod.Get, url, asynchronousPatternEnabled: true);
382+
DurableHttpResponse response =await context.CallHttpAsync(
383+
HttpMethod.Get,
384+
url!,
385+
content: null,
386+
retryOptions: null,
387+
asynchronousPatternEnabled: true)
384388
}
385389

386390
```

0 commit comments

Comments
 (0)