Browse Source

add ICallbackMessageSender to DI with singleton.

undefined
Savorboard 7 years ago
parent
commit
102950330b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs

+ 2
- 0
src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs View File

@@ -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>();



Loading…
Cancel
Save