AuthenticationCoreServiceCollectionExtensions.AddAuthenticationCore 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
参数
- services
- 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
参数
- services
- IServiceCollection
- configureOptions
- Action<AuthenticationOptions>
用于配置 AuthenticationOptions。
返回
服务集合。