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
Параметры
- services
- 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
Параметры
- services
- IServiceCollection
- configureOptions
- Action<AuthenticationOptions>
Используется для настройки AuthenticationOptions.
Возвращаемое значение
Коллекция служб.