Browse Source

Refactor

master
alexinea 7 years ago
parent
commit
0355ee409d
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs

+ 1
- 3
src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs View File

@@ -23,9 +23,7 @@ namespace Microsoft.Extensions.DependencyInjection
/// <returns>An <see cref="CapBuilder"/> for application services.</returns>
public static CapBuilder AddCap(this IServiceCollection services)
{
services.AddCap(x => new CapOptions());

return new CapBuilder(services);
return services.AddCap(x => new CapOptions());
}

/// <summary>


Loading…
Cancel
Save