Share via


IHostEnvironmentAuthenticationStateProvider.SetAuthenticationState Method

Definition

Supplies updated authentication state data to the AuthenticationStateProvider.

public:
 void SetAuthenticationState(System::Threading::Tasks::Task<Microsoft::AspNetCore::Components::Authorization::AuthenticationState ^> ^ authenticationStateTask);
public void SetAuthenticationState (System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Authorization.AuthenticationState> authenticationStateTask);
abstract member SetAuthenticationState : System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Authorization.AuthenticationState> -> unit
Public Sub SetAuthenticationState (authenticationStateTask As Task(Of AuthenticationState))

Parameters

authenticationStateTask
Task<AuthenticationState>

A task that resolves with the updated AuthenticationState.

Applies to