From b9c31c82575c2d281d61899e83ee25821e127f59 Mon Sep 17 00:00:00 2001 From: Savorboard Date: Fri, 13 Oct 2017 23:34:00 +0800 Subject: [PATCH] inject failed message processor. --- src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs b/src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs index 024f07f..2a5c75f 100644 --- a/src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs +++ b/src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs @@ -46,12 +46,13 @@ namespace Microsoft.Extensions.DependencyInjection //Processors services.AddTransient(); services.AddTransient(); - services.AddTransient(); + services.AddTransient(); services.AddTransient(); //Executors services.AddSingleton(); services.AddSingleton(); + services.TryAddSingleton(); //Options and extension service var options = new CapOptions();