1 instantiation of RestoringComponentStateSubscription
Microsoft.AspNetCore.Components (1)
PersistentComponentState.cs (1)
96
return new
RestoringComponentStateSubscription
(_registeredRestoringCallbacks, registration);
9 references to RestoringComponentStateSubscription
Microsoft.AspNetCore.Components (4)
PersistentComponentState.cs (1)
84
public
RestoringComponentStateSubscription
RegisterOnRestoring(Action callback, RestoreOptions options)
PersistentState\PersistentServicesRegistry.cs (2)
25
private List<(PersistingComponentStateSubscription,
RestoringComponentStateSubscription
)> _subscriptions = [];
58
var subscriptions = new List<(PersistingComponentStateSubscription,
RestoringComponentStateSubscription
)>(
PersistentState\PersistentValueProviderComponentSubscription.cs (1)
45
private readonly
RestoringComponentStateSubscription
? _restoringSubscription;
Microsoft.AspNetCore.Components.Tests (5)
PersistentState\PersistentComponentStateTest.cs (5)
204
var
subscription = applicationState.RegisterOnRestoring(() => { callbackInvoked = true; }, options);
223
var
subscription = applicationState.RegisterOnRestoring(() => { callbackInvoked = true; }, options);
241
var
subscription = applicationState.RegisterOnRestoring(() => { }, options);
260
var
subscription = applicationState.RegisterOnRestoring(() => { }, options);
277
var
subscription = applicationState.RegisterOnRestoring(() => { }, options);