34 references to InitializeExistingState
Microsoft.AspNetCore.Components (1)
PersistentState\ComponentStatePersistenceManager.cs (1)
88State.InitializeExistingState(data, context);
Microsoft.AspNetCore.Components.Tests (33)
PersistentState\PersistentComponentStateTest.cs (11)
25applicationState.InitializeExistingState(existingState, RestoreContext.InitialValue); 42applicationState.InitializeExistingState(existingState, RestoreContext.InitialValue); 45Assert.Throws<InvalidOperationException>(() => applicationState.InitializeExistingState(existingState, null)); 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);
PersistentStateValueProviderKeyResolverTests.cs (7)
58persistenceManager.State.InitializeExistingState(state, RestoreContext.InitialValue); 91newState.InitializeExistingState(store.State, null); 146newState.InitializeExistingState(store.State, null); 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 (14)
24state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 46state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 78state.InitializeExistingState(initialState, RestoreContext.LastSnapshot); 100state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 138state.InitializeExistingState(initialState, RestoreContext.LastSnapshot); 168state.InitializeExistingState(initialState, RestoreContext.LastSnapshot); 190state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 218state.InitializeExistingState(initialState, RestoreContext.InitialValue); 309state.InitializeExistingState(initialState, RestoreContext.LastSnapshot); 355state.InitializeExistingState(initialState, RestoreContext.LastSnapshot); 412state.InitializeExistingState(initialState, RestoreContext.LastSnapshot); 650state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 673state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue); 696state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);