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