Fix /// comments

The returns tag incorrectly states that AddDefaultIdentity<T>
returns IServiceCollection when it actually returns IdentityBuilder.
This commit is contained in:
tstivers1990 2018-06-11 16:42:10 -04:00 committed by GitHub
parent b444f9a209
commit dbe054ba6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ namespace Microsoft.Extensions.DependencyInjection
/// can be found by the application.
/// </remarks>
/// <param name="services">The <see cref="IServiceCollection"/>.</param>
/// <returns>The <see cref="IServiceCollection"/>.</returns>
/// <returns>The <see cref="IdentityBuilder"/>.</returns>
public static IdentityBuilder AddDefaultIdentity<TUser>(this IServiceCollection services) where TUser : class
=> services.AddDefaultIdentity<TUser>(_ => { });
@ -43,7 +43,7 @@ namespace Microsoft.Extensions.DependencyInjection
/// </remarks>
/// <param name="services">The <see cref="IServiceCollection"/>.</param>
/// <param name="configureOptions">Configures the <see cref="IdentityOptions"/>.</param>
/// <returns>The <see cref="IServiceCollection"/>.</returns>
/// <returns>The <see cref="IdentityBuilder"/>.</returns>
public static IdentityBuilder AddDefaultIdentity<TUser>(this IServiceCollection services, Action<IdentityOptions> configureOptions) where TUser : class
{
services.AddAuthentication(o =>
@ -62,4 +62,4 @@ namespace Microsoft.Extensions.DependencyInjection
.AddDefaultTokenProviders();
}
}
}
}