我有一个 DurableOrchestrationClient 执行几个 Activity 函数在 ActivityMessage 对象上工作 - 如何在启动函数中获取更新的 ActivityMessage 对象的句柄?
例如启动器功能:
ActivityMessage am = new ActivityMessage();
var orchestrationId = starter.StartNewAsync("O_DispatchExecutor", am);
...>
[FunctionName("O_DispatchExecutor")]
public static async Task<ActivityMessage>
TaskExecutor([OrchestrationTrigger]DurableOrchestrationContext ctx, ILogger
log)
{
int index = 0; //
ActivityMessage input = ctx.GetInput<ActivityMessage>();
for (; index <= input.Rules.Count; index++) {
Rule r = input.Rules.ElementAt(index);
try
{
input = ctx.CallActivityAsync<ActivityMessage>(r.Name, input));
...
任何帮助将不胜感激