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