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