diff --git a/src/X1.Application/DependencyInjection.cs b/src/X1.Application/DependencyInjection.cs index 57b9352..fe6c9fc 100644 --- a/src/X1.Application/DependencyInjection.cs +++ b/src/X1.Application/DependencyInjection.cs @@ -43,7 +43,7 @@ public static class DependencyInjection // 注册验证器 services.AddScoped(typeof(IPipelineBehavior<,>), typeof(ValidationBehaviour<,>)); - + services.AddSingleton(); // 注册协议通道管理器(单例,因为需要在整个应用生命周期中保持状态) services.AddSingleton();