UserClaimsPrincipalFactory<TUser> Sınıf

Tanım

Belirli bir kullanıcı için talep sorumlusu oluşturmak için yöntemler sağlar.

generic <typename TUser>
 where TUser : classpublic ref class UserClaimsPrincipalFactory : Microsoft::AspNetCore::Identity::IUserClaimsPrincipalFactory<TUser>
public class UserClaimsPrincipalFactory<TUser> : Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory<TUser> where TUser : class
type UserClaimsPrincipalFactory<'User (requires 'User : null)> = class
    interface IUserClaimsPrincipalFactory<'User (requires 'User : null)>
Public Class UserClaimsPrincipalFactory(Of TUser)
Implements IUserClaimsPrincipalFactory(Of TUser)

Tür Parametreleri

TUser

Kullanıcıyı temsil etmek için kullanılan tür.

Devralma
UserClaimsPrincipalFactory<TUser>
Türetilmiş
Uygulamalar

Oluşturucular

UserClaimsPrincipalFactory<TUser>(UserManager<TUser>, IOptions<IdentityOptions>)

UserClaimsPrincipalFactory<TUser> sınıfının yeni bir örneğini başlatır.

Özellikler

Options

Bu fabrika için alır IdentityOptions .

UserManager

Bu fabrika için alır UserManager<TUser> .

Yöntemler

CreateAsync(TUser)

Bir kullanıcıdan zaman uyumsuz olarak bir ClaimsPrincipal oluşturur.

GenerateClaimsAsync(TUser)

Bir kullanıcı için talepleri oluşturun.

Şunlara uygulanır