IdentityServiceCollectionExtensions.AddIdentityCore Метод

Определение

Перегрузки

AddIdentityCore<TUser>(IServiceCollection)

Добавляет и настраивает систему удостоверений для указанного типа пользователя. Службы ролей не добавляются по умолчанию, но их можно добавить с AddRoles<TRole>()помощью .

AddIdentityCore<TUser>(IServiceCollection, Action<IdentityOptions>)

Добавляет и настраивает систему удостоверений для указанного типа пользователя. Службы ролей не добавляются по умолчанию, но их можно добавить с AddRoles<TRole>()помощью .

AddIdentityCore<TUser>(IServiceCollection)

Исходный код:
IdentityServiceCollectionExtensions.cs
Исходный код:
IdentityServiceCollectionExtensions.cs
Исходный код:
IdentityServiceCollectionExtensions.cs
Исходный код:
IdentityServiceCollectionExtensions.cs
Исходный код:
IdentityServiceCollectionExtensions.cs
Исходный код:
IdentityServiceCollectionExtensions.cs
Исходный код:
IdentityServiceCollectionExtensions.cs
Исходный код:
IdentityServiceCollectionExtensions.cs

Добавляет и настраивает систему удостоверений для указанного типа пользователя. Службы ролей не добавляются по умолчанию, но их можно добавить с AddRoles<TRole>()помощью .

public static Microsoft.AspNetCore.Identity.IdentityBuilder AddIdentityCore<TUser> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TUser : class;
static member AddIdentityCore : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null)
<Extension()>
Public Function AddIdentityCore(Of TUser As Class) (services As IServiceCollection) As IdentityBuilder

Параметры типа

TUser

Тип, представляющий пользователя в системе.

Параметры

services
IServiceCollection

Службы, доступные в приложении.

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

AddIdentityCore<TUser>(IServiceCollection, Action<IdentityOptions>)

Исходный код:
IdentityServiceCollectionExtensions.cs
Исходный код:
IdentityServiceCollectionExtensions.cs
Исходный код:
IdentityServiceCollectionExtensions.cs
Исходный код:
IdentityServiceCollectionExtensions.cs
Исходный код:
IdentityServiceCollectionExtensions.cs
Исходный код:
IdentityServiceCollectionExtensions.cs
Исходный код:
IdentityServiceCollectionExtensions.cs
Исходный код:
IdentityServiceCollectionExtensions.cs

Добавляет и настраивает систему удостоверений для указанного типа пользователя. Службы ролей не добавляются по умолчанию, но их можно добавить с AddRoles<TRole>()помощью .

public static Microsoft.AspNetCore.Identity.IdentityBuilder AddIdentityCore<TUser> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Identity.IdentityOptions> setupAction) where TUser : class;
static member AddIdentityCore : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Identity.IdentityOptions> -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null)
<Extension()>
Public Function AddIdentityCore(Of TUser As Class) (services As IServiceCollection, setupAction As Action(Of IdentityOptions)) As IdentityBuilder

Параметры типа

TUser

Тип, представляющий пользователя в системе.

Параметры

services
IServiceCollection

Службы, доступные в приложении.

setupAction
Action<IdentityOptions>

Действие для настройки IdentityOptions.

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