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