Integrate Elsa.Workflows.Runtime.Distributed into Elsa.ModularServer.Web and configure shell features for enhanced distributed runtime support.
This commit is contained in:
parent
3d8d3b7de2
commit
e7eaa4b1fe
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue