@@ -57,7 +57,7 @@ public static async Task<object> Run(
57
57
{
58
58
try
59
59
{
60
- var x = await context .CallActivityAsync <object >(" F1" );
60
+ var x = await context .CallActivityAsync <object >(" F1" , null );
61
61
var y = await context .CallActivityAsync <object >(" F2" , x );
62
62
var z = await context .CallActivityAsync <object >(" F3" , y );
63
63
return await context .CallActivityAsync <object >(" F4" , z );
@@ -109,7 +109,7 @@ public static async Task Run(
109
109
var parallelTasks = new List <Task <int >>();
110
110
111
111
// 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 );
113
113
for (int i = 0 ; i < workBatch .Length ; i ++ )
114
114
{
115
115
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
283
283
public static async Task Run (
284
284
[OrchestrationTrigger ] DurableOrchestrationContext context )
285
285
{
286
- await context .CallActivityAsync (" RequestApproval" );
286
+ await context .CallActivityAsync (" RequestApproval" , null );
287
287
using (var timeoutCts = new CancellationTokenSource ())
288
288
{
289
289
DateTime dueTime = context .CurrentUtcDateTime .AddHours (72 );
@@ -297,7 +297,7 @@ public static async Task Run(
297
297
}
298
298
else
299
299
{
300
- await context .CallActivityAsync (" Escalate" );
300
+ await context .CallActivityAsync (" Escalate" , null );
301
301
}
302
302
}
303
303
}
0 commit comments