diff --git a/src/bundles/Elsa.Server.Web/Program.cs b/src/bundles/Elsa.Server.Web/Program.cs index ac70b9cc0d..d4d383c7df 100644 --- a/src/bundles/Elsa.Server.Web/Program.cs +++ b/src/bundles/Elsa.Server.Web/Program.cs @@ -49,6 +49,7 @@ const bool useCaching = true; const bool useReadOnlyMode = false; const bool useSignalR = true; +const bool useAzureServiceBus = false; const DistributedCachingTransport distributedCachingTransport = DistributedCachingTransport.MassTransit; const MassTransitBroker useMassTransitBroker = MassTransitBroker.AzureServiceBus; @@ -328,6 +329,9 @@ elsa.UseRealTimeWorkflows(); } + if (useAzureServiceBus) + elsa.UseAzureServiceBus(asb => asb.AzureServiceBusOptions += options => configuration.GetSection("AzureServiceBus").Bind(options)); + if (useMassTransit) { elsa.UseMassTransit(massTransit =>