Browse Source

feat: Add map WorkflowInstanceHub

pull/1568/head
colin 3 weeks ago
parent
commit
880cf938ca
  1. 4
      aspnet-core/modules/elsa/LINGYUN.Abp.ElsaNext.Server/LINGYUN.Abp.ElsaNext.Server.csproj
  2. 11
      aspnet-core/modules/elsa/LINGYUN.Abp.ElsaNext.Server/LINGYUN/Abp/ElsaNext/Server/AbpElsaNextServerModule.cs

4
aspnet-core/modules/elsa/LINGYUN.Abp.ElsaNext.Server/LINGYUN.Abp.ElsaNext.Server.csproj

@ -19,6 +19,10 @@
<EmbeddedResource Include="LINGYUN\Abp\ElsaNext\Server\Localization\Resources\*.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Volo.Abp.AspNetCore" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Elsa.Api.Common" VersionOverride="$(ElsaNextPackageVersion)" />
<PackageReference Include="Elsa.Dashboard.Api" VersionOverride="$(ElsaNextPackageVersion)" />

11
aspnet-core/modules/elsa/LINGYUN.Abp.ElsaNext.Server/LINGYUN/Abp/ElsaNext/Server/AbpElsaNextServerModule.cs

@ -1,8 +1,11 @@
using Elsa.Extensions;
using Elsa.Features.Services;
using Elsa.Workflows.Api.RealTime.Hubs;
using LINGYUN.Abp.ElsaNext.Localization;
using LINGYUN.Abp.ElsaNext.Permissions;
using LINGYUN.Abp.ElsaNext.Server.Permissions;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.Configuration;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
@ -60,6 +63,14 @@ public class AbpElsaNextServerModule : AbpModule
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpEndpointRouterOptions>(options =>
{
options.EndpointConfigureActions.Add((context) =>
{
context.Endpoints.MapHub<WorkflowInstanceHub>("/elsa/hubs/workflow-instance");
});
});
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<AbpElsaNextServerModule>();

Loading…
Cancel
Save