Skip to content

Files

Latest commit

8237af7 · Oct 20, 2024

History

History

LLL.DurableTask.Client

LLL.DurableTask.Client Nuget

Dependency injection extensions to configure TaskHubClient.

Allows management of orchestrations via code.

Depends on

  • Storage

Configuration

services.AddDurableTaskClient();

Usage

public IActionResult BookPackage([FromService] TaskHubClient taskHubClient) {
    await taskHubClient.CreateOrchestrationInstanceAsync("BookParallel", "v1", new {
        bookFlight: true,
        bookHotel: true,
        bookCar: true
    });
    ...
}