Commit 0355ee40 authored by alexinea's avatar alexinea

Refactor

parent cfc12aa9
......@@ -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