54 references to InitialValue
Microsoft.AspNetCore.Components (2)
PersistentComponentState.cs (1)
34internal RestoreContext CurrentContext { get; private set; } = RestoreContext.InitialValue;
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 (2)
Circuits\CircuitFactory.cs (1)
79await appLifetime.RestoreStateAsync(store, RestoreContext.InitialValue);
Circuits\CircuitHost.cs (1)
803(false, _) => RestoreContext.InitialValue
Microsoft.AspNetCore.Components.Tests (48)
PersistentState\ComponentStatePersistenceManagerTest.cs (6)
123await persistenceManager.RestoreStateAsync(new TestStore([]), RestoreContext.InitialValue); 366await persistenceManager.RestoreStateAsync(store, RestoreContext.InitialValue); 370persistenceManager.RestoreStateAsync(store, RestoreContext.InitialValue)); 387await persistenceManager.RestoreStateAsync(store, RestoreContext.InitialValue); 413await persistenceManager.RestoreStateAsync(store, RestoreContext.InitialValue); 444yield return new object[] { RestoreContext.InitialValue };
PersistentState\PersistentComponentStateTest.cs (10)
25applicationState.InitializeExistingState(existingState, RestoreContext.InitialValue); 42applicationState.InitializeExistingState(existingState, RestoreContext.InitialValue); 73applicationState.InitializeExistingState(existingState, RestoreContext.InitialValue); 163applicationState.InitializeExistingState(existingState, RestoreContext.InitialValue); 181applicationState.InitializeExistingState(existingState, RestoreContext.InitialValue); 198applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 217applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 236applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 255applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 274applicationState.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
PersistentState\PersistentServicesRegistryTest.cs (13)
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); 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);
PersistentState\RestoreContextTest.cs (3)
15var result = RestoreContext.InitialValue.ShouldRestore(options); 25var result = RestoreContext.InitialValue.ShouldRestore(options); 39var result = RestoreContext.InitialValue.ShouldRestore(options);
PersistentStateValueProviderKeyResolverTests.cs (6)
58persistenceManager.State.InitializeExistingState(state, RestoreContext.InitialValue); 113await persistenceManager.RestoreStateAsync(new TestStore([]), RestoreContext.InitialValue); 166persistenceManager.State.InitializeExistingState(state, RestoreContext.InitialValue); 216persistenceManager.State.InitializeExistingState(state, RestoreContext.InitialValue); 254persistenceManager.State.InitializeExistingState(state, RestoreContext.InitialValue); 293persistenceManager.State.InitializeExistingState(state, RestoreContext.InitialValue);
PersistentStateValueProviderTests.cs (1)
110state.InitializeExistingState(dictionary, RestoreContext.InitialValue);
PersistentValueProviderComponentSubscriptionTests.cs (9)
24state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 46state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 100state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 190state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 218state.InitializeExistingState(initialState, RestoreContext.InitialValue); 260await manager.RestoreStateAsync(new TestStore(appState), RestoreContext.InitialValue); 650state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 673state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 696state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHost.cs (1)
138await manager.RestoreStateAsync(store, RestoreContext.InitialValue);