浏览代码

add ICallbackMessageSender to DI with singleton.

undefined
Savorboard 7 年前
父节点
当前提交
102950330b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs

+ 2
- 0
src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs 查看文件

@@ -37,6 +37,8 @@ namespace Microsoft.Extensions.DependencyInjection
services.TryAddSingleton<IMessagePacker, DefaultMessagePacker>();
services.TryAddSingleton<IConsumerServiceSelector, DefaultConsumerServiceSelector>();
services.TryAddSingleton<IModelBinderFactory, ModelBinderFactory>();

services.TryAddSingleton<ICallbackMessageSender, CallbackMessageSender>();
services.TryAddSingleton<IConsumerInvokerFactory, ConsumerInvokerFactory>();
services.TryAddSingleton<MethodMatcherCache>();



正在加载...
取消
保存