共用方式為


AuthenticationCoreServiceCollectionExtensions.AddAuthenticationCore 方法

定義

多載

AddAuthenticationCore(IServiceCollection)

新增 所需的 IAuthenticationService 核心驗證服務。

AddAuthenticationCore(IServiceCollection, Action<AuthenticationOptions>)

新增 所需的 IAuthenticationService 核心驗證服務。

AddAuthenticationCore(IServiceCollection)

來源:
AuthenticationCoreServiceCollectionExtensions.cs
來源:
AuthenticationCoreServiceCollectionExtensions.cs
來源:
AuthenticationCoreServiceCollectionExtensions.cs

新增 所需的 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>)

來源:
AuthenticationCoreServiceCollectionExtensions.cs
來源:
AuthenticationCoreServiceCollectionExtensions.cs
來源:
AuthenticationCoreServiceCollectionExtensions.cs

新增 所需的 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

傳回

服務集合。

適用於