1 write to PersistedState
Microsoft.AspNetCore.Components.Endpoints (1)
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
66PersistedState = Convert.ToBase64String(SerializeState(state));
22 references to PersistedState
Microsoft.AspNetCore.Components.Endpoints (4)
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (4)
217if (ServerStore is not null && ServerStore.PersistedState is not null) 220writer.Write(ServerStore.PersistedState); 224if (WebAssemblyStore is not null && WebAssemblyStore.PersistedState is not null) 227writer.Write(WebAssemblyStore.PersistedState);
Microsoft.AspNetCore.Components.Endpoints.Tests (16)
EndpointHtmlRendererTest.cs (16)
1492Assert.Null(stateContent.ServerStore.PersistedState); 1497Assert.Null(stateContent.WebAssemblyStore.PersistedState); 1558Assert.NotNull(stateContent.ServerStore.PersistedState); 1563Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1568Assert.NotNull(stateContent.ServerStore.PersistedState); 1570Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1612Assert.NotNull(stateContent.ServerStore.PersistedState); 1617Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1678Assert.NotNull(stateContent.ServerStore.PersistedState); 1683Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1688Assert.NotNull(stateContent.ServerStore.PersistedState); 1690Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1749Assert.NotNull(stateContent.ServerStore.PersistedState); 1753Assert.Null(stateContent.ServerStore.PersistedState); 1761Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1765Assert.Null(stateContent.WebAssemblyStore.PersistedState);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (2)
PrerenderComponentApplicationStoreTest.cs (1)
26Assert.Equal(expected, store.PersistedState);
ProtectedPrerenderComponentApplicationStateTest.cs (1)
33Assert.Equal(expected, _protector.Unprotect(store.PersistedState));