Share via


IdentityServiceCollectionExtensions.AddIdentityCore Method

Definition

Overloads

AddIdentityCore<TUser>(IServiceCollection)

Adds and configures the identity system for the specified User type. Role services are not added by default but can be added with AddRoles<TRole>().

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

Adds and configures the identity system for the specified User type. Role services are not added by default but can be added with AddRoles<TRole>().

AddIdentityCore<TUser>(IServiceCollection)

Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs

Adds and configures the identity system for the specified User type. Role services are not added by default but can be added with 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

Type Parameters

TUser

The type representing a User in the system.

Parameters

services
IServiceCollection

The services available in the application.

Applies to

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

Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs
Source:
IdentityServiceCollectionExtensions.cs

Adds and configures the identity system for the specified User type. Role services are not added by default but can be added with 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

Type Parameters

TUser

The type representing a User in the system.

Parameters

services
IServiceCollection

The services available in the application.

setupAction
Action<IdentityOptions>

An action to configure the IdentityOptions.

Applies to