Commit 2f31e5b0 authored by Savorboard's avatar Savorboard Committed by GitHub

Merge pull request #6 from alexinea/master

Refactor
parents 836a68b6 0355ee40
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment