Skip to content

Instantly share code, notes, and snippets.

Last active Sep 17, 2019
What would you like to do?
public static async Task<IActionResult> RunAsync(
[HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] HttpRequest req,
[OrchestrationClient​] IDurableOrchestrationClient starter,
ILogger log)
string requestBody = await new StreamReader(req.Body).ReadToEndAsync();
dynamic data = JsonConvert.DeserializeObject(requestBody);
string instanceId = await starter.StartNewAsync("Orchestration", (int)(data.secondsToWait ?? 60)).ConfigureAwait(false);
return starter.CreateCheckStatusResponse(req, instanceId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment