Class IdentityAuthenticationStateProvider
public class IdentityAuthenticationStateProvider : AuthenticationStateProvider
- Inheritance
-
objectAuthenticationStateProviderIdentityAuthenticationStateProvider
Constructors
IdentityAuthenticationStateProvider(IServiceProvider)
public IdentityAuthenticationStateProvider(IServiceProvider serviceProvider)
Parameters
serviceProvider
IServiceProvider
Methods
GetAuthenticationStateAsync()
Asynchronously gets an Microsoft.AspNetCore.Components.Authorization.AuthenticationState that describes the current user.
public override Task<AuthenticationState> GetAuthenticationStateAsync()
Returns
- Task<AuthenticationState>
A task that, when resolved, gives an Microsoft.AspNetCore.Components.Authorization.AuthenticationState instance that describes the current user.
NotifyAuthenticationChanged()
public void NotifyAuthenticationChanged()