Skip to content

Commit 9760e17

Browse files
authored
Merge pull request #89673 from PramodValavala-MSFT/patch-62
(AzureCXP) fix calls to CallActivityAsync with no input
2 parents 9f3fde0 + cf485bf commit 9760e17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/azure-functions/durable/durable-functions-overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static async Task<object> Run(
5757
{
5858
try
5959
{
60-
var x = await context.CallActivityAsync<object>("F1");
60+
var x = await context.CallActivityAsync<object>("F1", null);
6161
var y = await context.CallActivityAsync<object>("F2", x);
6262
var z = await context.CallActivityAsync<object>("F3", y);
6363
return await context.CallActivityAsync<object>("F4", z);
@@ -109,7 +109,7 @@ public static async Task Run(
109109
var parallelTasks = new List<Task<int>>();
110110

111111
// Get a list of N work items to process in parallel.
112-
object[] workBatch = await context.CallActivityAsync<object[]>("F1");
112+
object[] workBatch = await context.CallActivityAsync<object[]>("F1", null);
113113
for (int i = 0; i < workBatch.Length; i++)
114114
{
115115
Task<int> task = context.CallActivityAsync<int>("F2", workBatch[i]);
@@ -283,7 +283,7 @@ These examples create an approval process to demonstrate the human interaction p
283283
public static async Task Run(
284284
[OrchestrationTrigger] DurableOrchestrationContext context)
285285
{
286-
await context.CallActivityAsync("RequestApproval");
286+
await context.CallActivityAsync("RequestApproval", null);
287287
using (var timeoutCts = new CancellationTokenSource())
288288
{
289289
DateTime dueTime = context.CurrentUtcDateTime.AddHours(72);
@@ -297,7 +297,7 @@ public static async Task Run(
297297
}
298298
else
299299
{
300-
await context.CallActivityAsync("Escalate");
300+
await context.CallActivityAsync("Escalate", null);
301301
}
302302
}
303303
}

0 commit comments

Comments
 (0)