54 references to InitialValue
Microsoft.AspNetCore.Components (2)
PersistentComponentState.cs (1)
34
internal RestoreContext CurrentContext { get; private set; } = RestoreContext.
InitialValue
;
PersistentState\ComponentStatePersistenceManager.cs (1)
61
await RestoreStateAsync(store, RestoreContext.
InitialValue
);
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.cs (1)
129
await componentApplicationLifetime.RestoreStateAsync(new PrerenderComponentApplicationStore(), RestoreContext.
InitialValue
);
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitFactory.cs (1)
79
await appLifetime.RestoreStateAsync(store, RestoreContext.
InitialValue
);
Circuits\CircuitHost.cs (1)
803
(false, _) => RestoreContext.
InitialValue
Microsoft.AspNetCore.Components.Tests (48)
PersistentState\ComponentStatePersistenceManagerTest.cs (6)
123
await persistenceManager.RestoreStateAsync(new TestStore([]), RestoreContext.
InitialValue
);
366
await persistenceManager.RestoreStateAsync(store, RestoreContext.
InitialValue
);
370
persistenceManager.RestoreStateAsync(store, RestoreContext.
InitialValue
));
387
await persistenceManager.RestoreStateAsync(store, RestoreContext.
InitialValue
);
413
await persistenceManager.RestoreStateAsync(store, RestoreContext.
InitialValue
);
444
yield return new object[] { RestoreContext.
InitialValue
};
PersistentState\PersistentComponentStateTest.cs (10)
25
applicationState.InitializeExistingState(existingState, RestoreContext.
InitialValue
);
42
applicationState.InitializeExistingState(existingState, RestoreContext.
InitialValue
);
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
);
PersistentState\PersistentServicesRegistryTest.cs (13)
36
await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.
InitialValue
);
79
await persistenceManagerOne.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.
InitialValue
);
147
await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.
InitialValue
);
218
await persistenceManagerOne.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.
InitialValue
);
227
await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State), RestoreContext.
InitialValue
);
334
await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.
InitialValue
);
380
await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.
InitialValue
);
422
await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.
InitialValue
);
431
await initialValueManager.RestoreStateAsync(new TestStore(testStore.State), RestoreContext.
InitialValue
);
458
await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.
InitialValue
);
494
await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.
InitialValue
);
507
await updatedManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.
InitialValue
);
516
await targetManager.RestoreStateAsync(new TestStore(initialStore.State), RestoreContext.
InitialValue
);
PersistentState\RestoreContextTest.cs (3)
15
var result = RestoreContext.
InitialValue
.ShouldRestore(options);
25
var result = RestoreContext.
InitialValue
.ShouldRestore(options);
39
var result = RestoreContext.
InitialValue
.ShouldRestore(options);
PersistentStateValueProviderKeyResolverTests.cs (6)
58
persistenceManager.State.InitializeExistingState(state, RestoreContext.
InitialValue
);
113
await persistenceManager.RestoreStateAsync(new TestStore([]), RestoreContext.
InitialValue
);
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 (9)
24
state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.
InitialValue
);
46
state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.
InitialValue
);
100
state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.
InitialValue
);
190
state.InitializeExistingState(new Dictionary<string, byte[]>(), RestoreContext.
InitialValue
);
218
state.InitializeExistingState(initialState, RestoreContext.
InitialValue
);
260
await manager.RestoreStateAsync(new TestStore(appState), RestoreContext.
InitialValue
);
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
);
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHost.cs (1)
138
await manager.RestoreStateAsync(store, RestoreContext.
InitialValue
);