This package adds integration into Microsoft.Extensions.DependencyInjection for Microsoft.Azure.DurableTask.
$ dotnet add package Vio.DurableTask.DependencyInjectionEnables usage of dependency injection with DurableTask Framework.
See Vio.DurableTask.Hosting for using this package with the .NET generic host builder.
TaskActivity and TaskOrchestration to DI container, with lifetime control (Singleton/Scoped/Transient).
<ITaskHubWorkerBuilder>.UseOrchestrationMiddleware<TMiddleware>()<ITaskHubWorkerBuilder>.UseActivityMiddleware<TMiddleware>()ITaskHubWorkerBuilder
IOrchestrationService from DI container, if available.TaskHubClient to DI container as well.A new IServiceScope is created for the duration of every OrchestrationInstance run. This scope will be used for all actions, middleware, and the orchestration itself and disposed after both the middleware & orchestration pipeline has finished execution. Scopes are not preserved between runs of the same OrchestrationInstance.