32 references to RestoreStateAsync
Microsoft.AspNetCore.Components (1)
PersistentState\ComponentStatePersistenceManager.cs (1)
61
await
RestoreStateAsync
(store, RestoreContext.InitialValue);
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.cs (1)
129
await componentApplicationLifetime.
RestoreStateAsync
(new PrerenderComponentApplicationStore(), RestoreContext.InitialValue);
Microsoft.AspNetCore.Components.Server (3)
Circuits\CircuitFactory.cs (1)
79
await appLifetime.
RestoreStateAsync
(store, RestoreContext.InitialValue);
Circuits\CircuitHost.cs (2)
813
await persistenceManager.
RestoreStateAsync
(store, context);
874
await manager.
RestoreStateAsync
(store, context);
Microsoft.AspNetCore.Components.Tests (25)
PersistentState\ComponentStatePersistenceManagerTest.cs (7)
123
await persistenceManager.
RestoreStateAsync
(new TestStore([]), RestoreContext.InitialValue);
366
await persistenceManager.
RestoreStateAsync
(store, RestoreContext.InitialValue);
370
persistenceManager.
RestoreStateAsync
(store, RestoreContext.InitialValue));
387
await persistenceManager.
RestoreStateAsync
(store, RestoreContext.InitialValue);
396
await persistenceManager.
RestoreStateAsync
(store, RestoreContext.ValueUpdate);
413
await persistenceManager.
RestoreStateAsync
(store, RestoreContext.InitialValue);
420
await newPersistenceManager.
RestoreStateAsync
(store, context);
PersistentState\PersistentServicesRegistryTest.cs (15)
36
await persistenceManager.
RestoreStateAsync
(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
79
await persistenceManagerOne.
RestoreStateAsync
(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
147
await persistenceManager.
RestoreStateAsync
(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
218
await persistenceManagerOne.
RestoreStateAsync
(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
227
await persistenceManagerTwo.
RestoreStateAsync
(new TestStore(testStore.State), RestoreContext.InitialValue);
334
await persistenceManager.
RestoreStateAsync
(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
380
await persistenceManager.
RestoreStateAsync
(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
422
await persistenceManager.
RestoreStateAsync
(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
431
await initialValueManager.
RestoreStateAsync
(new TestStore(testStore.State), RestoreContext.InitialValue);
458
await persistenceManager.
RestoreStateAsync
(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
467
await lastSnapshotManager.
RestoreStateAsync
(new TestStore(testStore.State), RestoreContext.LastSnapshot);
494
await persistenceManager.
RestoreStateAsync
(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
507
await updatedManager.
RestoreStateAsync
(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue);
516
await targetManager.
RestoreStateAsync
(new TestStore(initialStore.State), RestoreContext.InitialValue);
521
await targetManager.
RestoreStateAsync
(new TestStore(updatedStore.State), RestoreContext.ValueUpdate);
PersistentStateValueProviderKeyResolverTests.cs (1)
113
await persistenceManager.
RestoreStateAsync
(new TestStore([]), RestoreContext.InitialValue);
PersistentValueProviderComponentSubscriptionTests.cs (2)
260
await manager.
RestoreStateAsync
(new TestStore(appState), RestoreContext.InitialValue);
281
await renderer.Dispatcher.InvokeAsync(() => manager.
RestoreStateAsync
(new TestStore(newState), RestoreContext.ValueUpdate));
Microsoft.AspNetCore.Components.WebAssembly (2)
Hosting\WebAssemblyHost.cs (1)
138
await manager.
RestoreStateAsync
(store, RestoreContext.InitialValue);
Rendering\WebAssemblyRenderer.cs (1)
102
await componentStatePersistenceManager.
RestoreStateAsync
(store, RestoreContext.ValueUpdate);