Compartilhar via


ServerAuthenticationStateProvider.GetAuthenticationStateAsync Método

Definição

Obtém de forma assíncrona um AuthenticationState que descreve o usuário atual.

public:
 override System::Threading::Tasks::Task<Microsoft::AspNetCore::Components::Authorization::AuthenticationState ^> ^ GetAuthenticationStateAsync();
public override System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Authorization.AuthenticationState> GetAuthenticationStateAsync ();
override this.GetAuthenticationStateAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Authorization.AuthenticationState>
Public Overrides Function GetAuthenticationStateAsync () As Task(Of AuthenticationState)

Retornos

Uma tarefa que, quando resolvida, fornece uma AuthenticationState instância que descreve o usuário atual.

Aplica-se a