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)
1502Assert.Null(stateContent.ServerStore.PersistedState); 1507Assert.Null(stateContent.WebAssemblyStore.PersistedState); 1568Assert.NotNull(stateContent.ServerStore.PersistedState); 1573Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1578Assert.NotNull(stateContent.ServerStore.PersistedState); 1580Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1622Assert.NotNull(stateContent.ServerStore.PersistedState); 1627Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1688Assert.NotNull(stateContent.ServerStore.PersistedState); 1693Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1698Assert.NotNull(stateContent.ServerStore.PersistedState); 1700Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1759Assert.NotNull(stateContent.ServerStore.PersistedState); 1763Assert.Null(stateContent.ServerStore.PersistedState); 1771Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1775Assert.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));