- Provides DLM support on Workflow Core using Azure Blob Storage leases.
- Provides Queueing support on Workflow Core using Azure Storage queues.
- Provides event hub support on Workflow Core backed by Azure Service Bus.
- Provides persistence on Workflow Core backed by Azure Cosmos DB.
- Provides persistence on Workflow Core backed by Azure Table Storage.
This makes it possible to have a cluster of nodes processing your workflows.
Install the NuGet package "WorkflowCore.Providers.Azure"
Using Nuget package console
PM> Install-Package WorkflowCore.Providers.Azure
Using .NET CLI
dotnet add package WorkflowCore.Providers.Azure
Use the IServiceCollection extension methods when building your service provider
- .UseAzureSynchronization
- .UseAzureServiceBusEventHub
- .UseCosmosDbPersistence
- .UseAzureTableStoragePersistence
services.AddWorkflow(options =>
{
options.UseAzureSynchronization("azure storage connection string");
options.UseAzureServiceBusEventHub("service bus connection string", "topic name", "subscription name");
options.UseCosmosDbPersistence("connection string");
});For cost-effective workflow persistence using Azure Table Storage:
services.AddWorkflow(options =>
{
options.UseAzureTableStoragePersistence("azure storage connection string");
});You can also specify a custom table name prefix:
services.AddWorkflow(options =>
{
options.UseAzureTableStoragePersistence("azure storage connection string", "MyWorkflows");
});Or use with managed identity:
services.AddWorkflow(options =>
{
var tableServiceUri = new Uri("https://mystorageaccount.table.core.windows.net");
var credential = new DefaultAzureCredential();
options.UseAzureTableStoragePersistence(tableServiceUri, credential);
});