From 0355ee409d5724df04cc0e7390ac8acd3dcd2fc7 Mon Sep 17 00:00:00 2001 From: alexinea Date: Mon, 10 Jul 2017 01:14:33 +0800 Subject: [PATCH] Refactor --- src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs b/src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs index 13307a3..bd58997 100644 --- a/src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs +++ b/src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs @@ -23,9 +23,7 @@ namespace Microsoft.Extensions.DependencyInjection /// An for application services. public static CapBuilder AddCap(this IServiceCollection services) { - services.AddCap(x => new CapOptions()); - - return new CapBuilder(services); + return services.AddCap(x => new CapOptions()); } ///