![]() |
VOOZH | about |
dotnet add package DurableTask.Symphony --version 1.4.1
NuGet\Install-Package DurableTask.Symphony -Version 1.4.1
<PackageReference Include="DurableTask.Symphony" Version="1.4.1" />
<PackageVersion Include="DurableTask.Symphony" Version="1.4.1" />Directory.Packages.props
<PackageReference Include="DurableTask.Symphony" />Project file
paket add DurableTask.Symphony --version 1.4.1
#r "nuget: DurableTask.Symphony, 1.4.1"
#:package DurableTask.Symphony@1.4.1
#addin nuget:?package=DurableTask.Symphony&version=1.4.1Install as a Cake Addin
#tool nuget:?package=DurableTask.Symphony&version=1.4.1Install as a Cake Tool
This repo contains the library code to interact with Durable Task Framework (DTFx) using MS SQL as the Orchestration Hub backend.
This library contains wrappers, services, extensions, and other helper methods to configure and use TaskHubClient and TaskHubWorker as injectable services, as well as reading state information from the configured OrchestrationServiceBase, which uses SQL server as a task hub.
Run Create-DurableTables.sql in the config/ directory of this repo. This will create the required tables and stored procedures for the Orchestration Hub.
In the IHost ConfigureServices() configuration methods, use the extension methods to configure the Orchestration Hub and the Task Worker.
IHost.CreateDefaultBuilder(args)
.ConfigureServices((hostBuilderContext, services) =>
{
services.AddOrchestrationHub(options =>
{
// Adds the backing SQL connection for storage and persistence
options.ConnectionString = "DurableContextSQLConnectionString"
options.MaxActiveOrchestrations = 10;
})
.AddTaskWorker(options =>
{
// Adds the Task Worker hosted services
options.ErrorPropagationMode = ErrorPropagationMode.UseFailureDetails);
});
// Register all Orchestrations and Activities automatically:
services.AutoRegisterOrchestrationsAndActivities()
// Register Orchestrations and Activities manually by listing Types:
services.WithRegisteredOrchestrations(new[]
{
// Adds Orchestrations as transient services and registers them with the Task Worker
typeof(SampleOrchestration),
typeof(AnotherOrchestration)
})
.WithRegisteredActivities(new[]
{
// Adds Activities and transient services and registers them with the Task Worker
typeof(SampleActivity),
typeof(AnotherActivity)
});
})
.Build();
Orchestrations must be classes that implement TaskOrchestration<TOutput, TInput>. Activities must be classes that implement TaskActivity<TInput, TOutput> or AsyncTaskActivity<TInput, TOutput>.
Orchestrations and Activities must be registered on the task worker (server) to function.
In the IHost ConfigureServices() configuration methods, use the extension methods to configure the connection to the Orchestration Hub.
IHost.CreateDefaultBuilder(args)
.ConfigureServices((hostBuilderContext, services) =>
{
services.AddOrchestrationHub(options =>
{
// Adds the backing SQL connection for storage and persistence
options.ConnectionString = "DurableContextSQLConnectionString"
})
.AddTaskClient();
})
.Build();
To start an Orchestration, inject an instance of the ITaskClient service and use the StartOrchestration or ScheduleOrchestration methods.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.4.1 | 263 | 11/6/2025 | |
| 1.4.0 | 275 | 2/27/2025 | |
| 1.3.5 | 255 | 10/24/2024 | |
| 1.3.3 | 277 | 4/1/2024 | |
| 1.3.2 | 265 | 3/21/2024 | |
| 1.3.1 | 237 | 3/14/2024 | |
| 1.3.0 | 268 | 3/8/2024 | |
| 1.2.2 | 272 | 2/15/2024 | |
| 1.2.1 | 372 | 11/28/2023 | |
| 1.1.2 | 238 | 10/26/2023 | |
| 1.1.1 | 318 | 8/28/2023 | 1.1.1 is deprecated because it has critical bugs. |
| 1.1.0 | 314 | 8/3/2023 |
- Update dependancy packages