Browse Source

服务注册问题

feature/x1-web-request
hyh 2 days ago
parent
commit
72dea399b6
  1. 2
      src/X1.Application/DependencyInjection.cs

2
src/X1.Application/DependencyInjection.cs

@ -43,7 +43,7 @@ public static class DependencyInjection
// 注册验证器
services.AddScoped(typeof(IPipelineBehavior<,>), typeof(ValidationBehaviour<,>));
services.AddSingleton<IServiceScopeExecutor, ServiceScopeExecutor>();
// 注册协议通道管理器(单例,因为需要在整个应用生命周期中保持状态)
services.AddSingleton<IProtocolChannelManager, ProtocolChannelManager>();

Loading…
Cancel
Save