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