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)
1365Assert.Null(stateContent.ServerStore.PersistedState); 1370Assert.Null(stateContent.WebAssemblyStore.PersistedState); 1431Assert.NotNull(stateContent.ServerStore.PersistedState); 1436Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1441Assert.NotNull(stateContent.ServerStore.PersistedState); 1443Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1485Assert.NotNull(stateContent.ServerStore.PersistedState); 1490Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1551Assert.NotNull(stateContent.ServerStore.PersistedState); 1556Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1561Assert.NotNull(stateContent.ServerStore.PersistedState); 1563Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1622Assert.NotNull(stateContent.ServerStore.PersistedState); 1626Assert.Null(stateContent.ServerStore.PersistedState); 1634Assert.NotNull(stateContent.WebAssemblyStore.PersistedState); 1638Assert.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));