Base:
method
GetAuthenticationStateAsync
Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider.GetAuthenticationStateAsync()
8 references to GetAuthenticationStateAsync
Microsoft.AspNetCore.Components.Server.Tests (8)
Circuits\RevalidatingServerAuthenticationStateProviderTest.cs (5)
23
Assert.Same(hostAuthStateTask, provider.
GetAuthenticationStateAsync
());
28
Assert.Same(hostAuthStateTask2, provider.
GetAuthenticationStateAsync
());
51
Assert.Equal("test user", (await provider.
GetAuthenticationStateAsync
()).User.Identity.Name);
173
Assert.Equal("different user", (await provider.
GetAuthenticationStateAsync
()).User.Identity.Name);
211
var newAuthState = await provider.
GetAuthenticationStateAsync
();
Circuits\ServerAuthenticationStateProviderTest.cs (3)
16
.
GetAuthenticationStateAsync
());
31
var actualAuthenticationState1 = await provider.
GetAuthenticationStateAsync
();
40
var actualAuthenticationState2 = await provider.
GetAuthenticationStateAsync
();