Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yuka1984
Created February 2, 2018 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuka1984/6e172c96612ca0235a01ee093eddadac to your computer and use it in GitHub Desktop.
Save yuka1984/6e172c96612ca0235a01ee093eddadac to your computer and use it in GitHub Desktop.
[FunctionName(nameof(WebHookOrchestrator))]
public static async Task<ResultModel> WebHookOrchestrator(
[OrchestrationTrigger]DurableOrchestrationContext context
)
{
var requestVaue = context.GetInput<int>();
var hookKey = await context.CallActivityAsync<string>(nameof(HookApiRequestActivity), requestVaue);
await context.CallActivityAsync(nameof(SaveRequestKeyActivity), hookKey);
var result = await context.WaitForExternalEvent<ResultModel>(HookWaitEventName);
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment