Поделиться через


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.

Возвращаемое значение

Коллекция служб.

Применяется к