Skip to Content
Hands-On Azure for Developers
book

Hands-On Azure for Developers

by Kamil Mrzygłód
November 2018
Intermediate to advanced
606 pages
15h 7m
English
Packt Publishing
Content preview from Hands-On Azure for Developers

Orchestration client

To get started with an orchestration, you need a host for it. In Durable Functions, that host is the orchestration client, which enables you to perform the following actions on an orchestration:

  • Start it
  • Terminate it
  • Get its status
  • Raise an event and pass it to an orchestration

The basic code for a client is pretty simple:

[FunctionName("Orchestration_Client")]public static async Task<string> Orchestration_Client(  [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "start")] HttpRequestMessage input,  [OrchestrationClient] DurableOrchestrationClient starter){  return await starter.StartNewAsync("Orchestration", await input.Content.ReadAsStringAsync());}

As you can see from the preceding code, we started an orchestration ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali

Publisher Resources

ISBN: 9781789340624Supplemental Content