1 instantiation of PersistentComponentState
Microsoft.AspNetCore.Components (1)
PersistentState\ComponentStatePersistenceManager.cs (1)
29State = new PersistentComponentState(_currentState, _registeredCallbacks, _registeredRestoringCallbacks);
20 references to PersistentComponentState
Microsoft.AspNetCore.Components (12)
PersistentComponentState.cs (2)
164/// and removed from the <see cref="PersistentComponentState"/>. 208/// and removed from the <see cref="PersistentComponentState"/>.
PersistentState\ComponentStatePersistenceManager.cs (1)
52public PersistentComponentState State { get; }
PersistentState\PersistentServicesRegistry.cs (4)
50internal void RegisterForPersistence(PersistentComponentState state) 101private static void PersistInstanceState(object instance, Type type, PersistentComponentState state) 119private void UpdateRegistrations(PersistentComponentState state) 128private static void RestoreInstanceState(object instance, Type type, PersistentComponentState state)
PersistentState\PersistentStateProviderServiceCollectionExtensions.cs (2)
10/// Enables component parameters to be supplied from <see cref="PersistentComponentState"/> with <see cref="PersistentStateAttribute"/>. 15/// Enables component parameters to be supplied from <see cref="PersistentComponentState"/> with <see cref="PersistentStateAttribute"/>.
PersistentState\PersistentStateValueProvider.cs (1)
10internal sealed partial class PersistentStateValueProvider(PersistentComponentState state, ILogger<PersistentStateValueProvider> logger, IServiceProvider serviceProvider) : ICascadingValueSupplier
PersistentState\PersistentValueProviderComponentSubscription.cs (2)
36private readonly PersistentComponentState _state; 52PersistentComponentState state,
Microsoft.AspNetCore.Components.WebAssembly.Server (7)
AuthenticationStateSerializationOptions.cs (2)
12/// to the WebAssembly client using <see cref="PersistentComponentState"/>. 32/// for JSON serialization to the client using <see cref="PersistentComponentState"/>."/>
AuthenticationStateSerializer.cs (4)
15private readonly PersistentComponentState _state; 21public AuthenticationStateSerializer(PersistentComponentState persistentComponentState, IOptions<AuthenticationStateSerializationOptions> options) 32throw new InvalidOperationException($"{nameof(SetAuthenticationState)} must be called before the {nameof(PersistentComponentState)}.{nameof(PersistentComponentState.RegisterOnPersisting)} callback.");
WebAssemblyRazorComponentsBuilderExtensions.cs (1)
61/// Serializes the <see cref="AuthenticationState"/> returned by the server-side <see cref="AuthenticationStateProvider"/> using <see cref="PersistentComponentState"/>
Microsoft.AspNetCore.Components.WebView (1)
ComponentsWebViewServiceCollectionExtensions.cs (1)
33services.TryAddScoped<PersistentComponentState>(sp => sp.GetRequiredService<ComponentStatePersistenceManager>().State);