From e7eaa4b1fed3b65c1bdcc5ebe33b76022e19f720 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Tue, 21 Apr 2026 11:59:46 +0200 Subject: [PATCH] Integrate `Elsa.Workflows.Runtime.Distributed` into `Elsa.ModularServer.Web` and configure shell features for enhanced distributed runtime support. --- .../Elsa.ModularServer.Web.csproj | 1 + src/apps/Elsa.ModularServer.Web/Program.cs | 21 +++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/apps/Elsa.ModularServer.Web/Elsa.ModularServer.Web.csproj b/src/apps/Elsa.ModularServer.Web/Elsa.ModularServer.Web.csproj index 95eaecb48..4632e1e43 100644 --- a/src/apps/Elsa.ModularServer.Web/Elsa.ModularServer.Web.csproj +++ b/src/apps/Elsa.ModularServer.Web/Elsa.ModularServer.Web.csproj @@ -12,6 +12,7 @@ + diff --git a/src/apps/Elsa.ModularServer.Web/Program.cs b/src/apps/Elsa.ModularServer.Web/Program.cs index 32a7ba7cd..4e0505c5a 100644 --- a/src/apps/Elsa.ModularServer.Web/Program.cs +++ b/src/apps/Elsa.ModularServer.Web/Program.cs @@ -3,6 +3,12 @@ using CShells.AspNetCore.Extensions; using CShells.DependencyInjection; using Elsa.ModularServer.Web; using Elsa.ModularServer.Web.Catalog; +using Elsa.ShellFeatures; +using Elsa.Workflows.Api.ShellFeatures; +using Elsa.Workflows.Management.ShellFeatures; +using Elsa.Workflows.Runtime.Distributed.ShellFeatures; +using Elsa.Workflows.Runtime.ShellFeatures; +using Elsa.Workflows.ShellFeatures; using Nuplane; using Nuplane.Loading.Hosting.Builder; using Nuplane.Sources.Directory.Configuration; @@ -27,14 +33,21 @@ builder.AddShells(shells => shells .WithAssemblyProvider() .WithConfigurationProvider(configuration) .WithWebRouting(options => options.EnablePathRouting = true) - .WithAuthenticationAndAuthorization()); - + .WithAuthenticationAndAuthorization() + .ConfigureAllShells(shell => + { + shell.WithFeatures( + typeof(ElsaFeature), + typeof(WorkflowManagementFeature), + typeof(WorkflowRuntimeFeature), + typeof(WorkflowsFeature), + typeof(DistributedRuntimeFeature), + typeof(WorkflowsApiFeature)); + })); services.AddSingleton(); services.AddHealthChecks(); - - services.AddAuthentication(); services.AddAuthorization();