1 instantiation of PersistingComponentStateSubscription
Microsoft.AspNetCore.Components (1)
PersistentComponentState.cs (1)
68return new PersistingComponentStateSubscription(_registeredCallbacks, persistenceCallback);
13 references to PersistingComponentStateSubscription
BasicTestApp (1)
PreserveStateService.cs (1)
12private PersistingComponentStateSubscription _persistingSubscription;
Microsoft.AspNetCore.Components (6)
PersistentComponentState.cs (2)
45public PersistingComponentStateSubscription RegisterOnPersisting(Func<Task> callback) 55public PersistingComponentStateSubscription RegisterOnPersisting(Func<Task> callback, IComponentRenderMode? renderMode)
PersistentState\PersistentServicesRegistry.cs (2)
24private List<PersistingComponentStateSubscription> _subscriptions = []; 48var subscriptions = new List<PersistingComponentStateSubscription>(_registrations.Length + 1);
SupplyParameterFromPersistentComponentStateValueProvider.cs (2)
23private readonly Dictionary<ComponentState, PersistingComponentStateSubscription> _subscriptions = []; 27internal Dictionary<ComponentState, PersistingComponentStateSubscription> Subscriptions => _subscriptions;
Microsoft.AspNetCore.Components.Endpoints (1)
src\Components\Shared\src\ResourceCollectionProvider.cs (1)
37PersistingComponentStateSubscription registration = default;
Microsoft.AspNetCore.Components.Tests (3)
PersistentState\ComponentStatePersistenceManagerTest.cs (3)
229var subscription1 = persistenceManager.State.RegisterOnPersisting(async () => { sequence.Add(1); await tcs.Task; sequence.Add(3); }); 230var subscription2 = persistenceManager.State.RegisterOnPersisting(async () => { sequence.Add(2); await tcs2.Task; sequence.Add(4); }); 324PersistingComponentStateSubscription subscription2 = default;
Microsoft.AspNetCore.Components.WebAssembly (1)
src\Components\Shared\src\ResourceCollectionProvider.cs (1)
37PersistingComponentStateSubscription registration = default;
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
AuthenticationStateSerializer.cs (1)
17private readonly PersistingComponentStateSubscription _subscription;