共用方式為


IdentityServiceCollectionExtensions.AddIdentityApiEndpoints 方法

定義

多載

AddIdentityApiEndpoints<TUser>(IServiceCollection)

將一組通用身分識別服務新增至應用程式,以支援 MapIdentityApi<TUser>(IEndpointRouteBuilder) 和設定驗證以支援身分識別持有人權杖和 Cookie。

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

將一組通用身分識別服務新增至應用程式,以支援 MapIdentityApi<TUser>(IEndpointRouteBuilder) 和設定驗證以支援身分識別持有人權杖和 Cookie。

AddIdentityApiEndpoints<TUser>(IServiceCollection)

來源:
IdentityServiceCollectionExtensions.cs

將一組通用身分識別服務新增至應用程式,以支援 MapIdentityApi<TUser>(IEndpointRouteBuilder) 和設定驗證以支援身分識別持有人權杖和 Cookie。

public static Microsoft.AspNetCore.Identity.IdentityBuilder AddIdentityApiEndpoints<TUser> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TUser : class, new();
static member AddIdentityApiEndpoints : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null and 'User : (new : unit -> 'User))
<Extension()>
Public Function AddIdentityApiEndpoints(Of TUser As {Class, New}) (services As IServiceCollection) As IdentityBuilder

類型參數

TUser

參數

傳回

IdentityBuilder

適用於

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

來源:
IdentityServiceCollectionExtensions.cs

將一組通用身分識別服務新增至應用程式,以支援 MapIdentityApi<TUser>(IEndpointRouteBuilder) 和設定驗證以支援身分識別持有人權杖和 Cookie。

public static Microsoft.AspNetCore.Identity.IdentityBuilder AddIdentityApiEndpoints<TUser> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Identity.IdentityOptions> configure) where TUser : class, new();
static member AddIdentityApiEndpoints : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Identity.IdentityOptions> -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null and 'User : (new : unit -> 'User))
<Extension()>
Public Function AddIdentityApiEndpoints(Of TUser As {Class, New}) (services As IServiceCollection, configure As Action(Of IdentityOptions)) As IdentityBuilder

類型參數

TUser

參數

configure
Action<IdentityOptions>

設定 IdentityOptions

傳回

IdentityBuilder

適用於