Created
December 10, 2019 21:42
-
-
Save dariuszparzygnat/804a62213070e0aadcdc3f8f8cdfcae3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[FunctionName("ClientFunction")] | |
public static async Task<IActionResult> ClientFunctionStart( | |
[HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req, | |
[DurableClient] IDurableOrchestrationClient client, | |
ILogger log) | |
{ | |
string name = req.Query["name"]; | |
string instanceId = Guid.NewGuid().ToString(); | |
await client.StartNewAsync("OrchestrationFunction", instanceId, name); | |
return client.CreateCheckStatusResponse(req, instanceId); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment