Dependency injection extensions to configure TaskHubClient.
Allows management of orchestrations via code.
- Storage
services.AddDurableTaskClient();
public IActionResult BookPackage([FromService] TaskHubClient taskHubClient) {
await taskHubClient.CreateOrchestrationInstanceAsync("BookParallel", "v1", new {
bookFlight: true,
bookHotel: true,
bookCar: true
});
...
}