Compartir a través de


AuthenticationStateProvider.GetAuthenticationStateAsync Método

Definición

Obtiene de forma asincrónica un AuthenticationState objeto que describe al usuario actual.

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

Devoluciones

Una tarea que, cuando se resuelve, proporciona una AuthenticationState instancia que describe al usuario actual.

Se aplica a