34 references to InitializeExistingState
Microsoft.AspNetCore.Components (1)
PersistentState\ComponentStatePersistenceManager.cs (1)
88
State.
InitializeExistingState
(data, context);
Microsoft.AspNetCore.Components.Tests (33)
PersistentState\PersistentComponentStateTest.cs (11)
25
applicationState.
InitializeExistingState
(existingState, RestoreContext.InitialValue);
42
applicationState.
InitializeExistingState
(existingState, RestoreContext.InitialValue);
45
Assert.Throws<InvalidOperationException>(() => applicationState.
InitializeExistingState
(existingState, null));
73
applicationState.
InitializeExistingState
(existingState, RestoreContext.InitialValue);
163
applicationState.
InitializeExistingState
(existingState, RestoreContext.InitialValue);
181
applicationState.
InitializeExistingState
(existingState, RestoreContext.InitialValue);
198
applicationState.
InitializeExistingState
(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
217
applicationState.
InitializeExistingState
(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
236
applicationState.
InitializeExistingState
(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
255
applicationState.
InitializeExistingState
(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
274
applicationState.
InitializeExistingState
(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
PersistentStateValueProviderKeyResolverTests.cs (7)
58
persistenceManager.State.
InitializeExistingState
(state, RestoreContext.InitialValue);
91
newState.
InitializeExistingState
(store.State, null);
146
newState.
InitializeExistingState
(store.State, null);
166
persistenceManager.State.
InitializeExistingState
(state, RestoreContext.InitialValue);
216
persistenceManager.State.
InitializeExistingState
(state, RestoreContext.InitialValue);
254
persistenceManager.State.
InitializeExistingState
(state, RestoreContext.InitialValue);
293
persistenceManager.State.
InitializeExistingState
(state, RestoreContext.InitialValue);
PersistentStateValueProviderTests.cs (1)
110
state.
InitializeExistingState
(dictionary, RestoreContext.InitialValue);
PersistentValueProviderComponentSubscriptionTests.cs (14)
24
state.
InitializeExistingState
(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
46
state.
InitializeExistingState
(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
78
state.
InitializeExistingState
(initialState, RestoreContext.LastSnapshot);
100
state.
InitializeExistingState
(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
138
state.
InitializeExistingState
(initialState, RestoreContext.LastSnapshot);
168
state.
InitializeExistingState
(initialState, RestoreContext.LastSnapshot);
190
state.
InitializeExistingState
(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
218
state.
InitializeExistingState
(initialState, RestoreContext.InitialValue);
309
state.
InitializeExistingState
(initialState, RestoreContext.LastSnapshot);
355
state.
InitializeExistingState
(initialState, RestoreContext.LastSnapshot);
412
state.
InitializeExistingState
(initialState, RestoreContext.LastSnapshot);
650
state.
InitializeExistingState
(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
673
state.
InitializeExistingState
(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);
696
state.
InitializeExistingState
(new Dictionary<string, byte[]>(), RestoreContext.InitialValue);