1 instantiation of AuthenticationStateData
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
AuthenticationStateSerializationOptions.cs (1)
42
data = new
AuthenticationStateData
();
13 references to AuthenticationStateData
Microsoft.AspNetCore.Components.WebAssembly.Authentication (7)
Options\AuthenticationStateDeserializationOptions.cs (3)
19
/// Default implementation for converting the <see cref="
AuthenticationStateData
"/> that was JSON deserialized from the server
23
public Func<
AuthenticationStateData
?, Task<AuthenticationState>> DeserializationCallback { get; set; } = DeserializeAuthenticationStateAsync;
25
private static Task<AuthenticationState> DeserializeAuthenticationStateAsync(
AuthenticationStateData
? authenticationStateData)
Services\DeserializedAuthenticationStateProvider.cs (3)
26
[DynamicDependency(JsonSerialized, typeof(
AuthenticationStateData
))]
31
if (!state.TryTakeFromJson<
AuthenticationStateData
?>(PersistenceKey, out
var
authenticationStateData) || authenticationStateData is null)
WebAssemblyAuthenticationServiceCollectionExtensions.cs (1)
23
/// using <see cref="
AuthenticationStateData
"/> and <see cref="PersistentComponentState"/>. There should be a corresponding call to
Microsoft.AspNetCore.Components.WebAssembly.Server (6)
AuthenticationStateSerializationOptions.cs (4)
31
/// Default implementation for converting the server's <see cref="AuthenticationState"/> to an <see cref="
AuthenticationStateData
"/> object
34
public Func<AuthenticationState, ValueTask<
AuthenticationStateData
?>> SerializationCallback { get; set; }
36
private ValueTask<
AuthenticationStateData
?> SerializeAuthenticationStateAsync(AuthenticationState authenticationState)
38
AuthenticationStateData
? data = null;
AuthenticationStateSerializer.cs (2)
16
private readonly Func<AuthenticationState, ValueTask<
AuthenticationStateData
?>> _serializeCallback;
35
var
authenticationStateData = await _serializeCallback(await _authenticationStateTask);