AuthenticationCoreServiceCollectionExtensions.AddAuthenticationCore 方法

定义

重载

AddAuthenticationCore(IServiceCollection)

添加 所需的 IAuthenticationService核心身份验证服务。

AddAuthenticationCore(IServiceCollection, Action<AuthenticationOptions>)

添加 所需的 IAuthenticationService核心身份验证服务。

AddAuthenticationCore(IServiceCollection)

添加 所需的 IAuthenticationService核心身份验证服务。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthenticationCore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddAuthenticationCore : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAuthenticationCore (services As IServiceCollection) As IServiceCollection

参数

返回

服务集合。

适用于

AddAuthenticationCore(IServiceCollection, Action<AuthenticationOptions>)

添加 所需的 IAuthenticationService核心身份验证服务。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthenticationCore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Authentication.AuthenticationOptions> configureOptions);
static member AddAuthenticationCore : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Authentication.AuthenticationOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAuthenticationCore (services As IServiceCollection, configureOptions As Action(Of AuthenticationOptions)) As IServiceCollection

参数

configureOptions
Action<AuthenticationOptions>

用于配置 AuthenticationOptions

返回

服务集合。

适用于