Integrate Elsa.Workflows.Runtime.Distributed into Elsa.ModularServer.Web and configure shell features for enhanced distributed runtime support.

This commit is contained in:
Sipke Schoorstra 2026-04-21 11:59:46 +02:00
parent 3d8d3b7de2
commit e7eaa4b1fe
No known key found for this signature in database
GPG key ID: 5C10502B28A4268F
2 changed files with 18 additions and 4 deletions

View file

@ -12,6 +12,7 @@
<ProjectReference Include="..\..\modules\Elsa.Resilience\Elsa.Resilience.csproj" />
<ProjectReference Include="..\..\modules\Elsa.Shells.Api\Elsa.Shells.Api.csproj" />
<ProjectReference Include="..\..\modules\Elsa.Workflows.Api\Elsa.Workflows.Api.csproj" />
<ProjectReference Include="..\..\modules\Elsa.Workflows.Runtime.Distributed\Elsa.Workflows.Runtime.Distributed.csproj" />
<ProjectReference Include="..\..\modules\Elsa\Elsa.csproj" />
</ItemGroup>
<ItemGroup>

View file

@ -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<NuplaneAssemblyProvider>()
.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<PluginCatalog>();
services.AddHealthChecks();
services.AddAuthentication();
services.AddAuthorization();