15 references to RestoreStateAsync
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.cs (1)
126await componentApplicationLifetime.RestoreStateAsync(new PrerenderComponentApplicationStore());
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitFactory.cs (1)
78await appLifetime.RestoreStateAsync(store);
Circuits\CircuitHost.cs (1)
782await appLifetime.RestoreStateAsync(store);
Microsoft.AspNetCore.Components.Tests (11)
PersistentState\ComponentStatePersistenceManagerTest.cs (3)
54await persistenceManager.RestoreStateAsync(store); 75await persistenceManager.RestoreStateAsync(store); 78await Assert.ThrowsAsync<InvalidOperationException>(() => persistenceManager.RestoreStateAsync(store));
PersistentState\PersistentServicesRegistryTest.cs (8)
44await secondManager.RestoreStateAsync(new TestStore(testStore.State)); 84await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State)); 117await secondManager.RestoreStateAsync(new TestStore(testStore.State)); 184var exception = await Record.ExceptionAsync(() => persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State))); 220await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State)); 254var exception = await Record.ExceptionAsync(async () => await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State))); 334await secondManager.RestoreStateAsync(new TestStore(testStore.State)); 379await secondManager.RestoreStateAsync(new TestStore(testStore.State));
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHost.cs (1)
140await manager.RestoreStateAsync(store);