Sdílet prostřednictvím


RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>.GetAuthenticationStateAsync Metoda

Definice

Asynchronně získá objekt AuthenticationState , který popisuje aktuálního uživatele.

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)

Návraty

Úloha, která při vyřešení poskytne AuthenticationState instanci, která popisuje aktuálního uživatele.

Platí pro