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