Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Last active August 17, 2020 01:57
Embed
What would you like to do?
[FunctionName("ProcessFileFlow")]
public static async Task RunOrchestrator(
[OrchestrationTrigger] IDurableOrchestrationContext context,
ILogger log)
{
var uploadApprovedEvent = context.WaitForExternalEvent<bool>("UploadApproved");
await Task.WhenAny(uploadApprovedEvent);
log.LogInformation("File Ready");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment