Fix /// comments
The returns tag incorrectly states that AddDefaultIdentity<T> returns IServiceCollection when it actually returns IdentityBuilder.
This commit is contained in:
parent
b444f9a209
commit
dbe054ba6c
|
|
@ -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 =>
|
||||||
|
|
@ -62,4 +62,4 @@ namespace Microsoft.Extensions.DependencyInjection
|
||||||
.AddDefaultTokenProviders();
|
.AddDefaultTokenProviders();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue