From 102950330bfa89d7e04676b4d0972e0dbfab21ee Mon Sep 17 00:00:00 2001 From: Savorboard Date: Sat, 21 Oct 2017 12:45:58 +0800 Subject: [PATCH] add ICallbackMessageSender to DI with singleton. --- src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs b/src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs index 826f3ba..cfb1fad 100644 --- a/src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs +++ b/src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs @@ -37,6 +37,8 @@ namespace Microsoft.Extensions.DependencyInjection services.TryAddSingleton(); services.TryAddSingleton(); services.TryAddSingleton(); + + services.TryAddSingleton(); services.TryAddSingleton(); services.TryAddSingleton();