AccountClaimsPrincipalFactory<TAccount>.CreateUserAsync 方法

定义

account 转换为最终 ClaimsPrincipal的 。

public:
 virtual System::Threading::Tasks::ValueTask<System::Security::Claims::ClaimsPrincipal ^> CreateUserAsync(TAccount account, Microsoft::AspNetCore::Components::WebAssembly::Authentication::RemoteAuthenticationUserOptions ^ options);
public virtual System.Threading.Tasks.ValueTask<System.Security.Claims.ClaimsPrincipal> CreateUserAsync (TAccount account, Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationUserOptions options);
abstract member CreateUserAsync : 'Account * Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationUserOptions -> System.Threading.Tasks.ValueTask<System.Security.Claims.ClaimsPrincipal>
override this.CreateUserAsync : 'Account * Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationUserOptions -> System.Threading.Tasks.ValueTask<System.Security.Claims.ClaimsPrincipal>
Public Overridable Function CreateUserAsync (account As TAccount, options As RemoteAuthenticationUserOptions) As ValueTask(Of ClaimsPrincipal)

参数

account
TAccount

帐户。

返回

完成 ValueTask<TResult>时将包含用户的 ClaimsPrincipal

适用于