20 references to PersistAsJson
BasicTestApp (1)
PreserveStateService.cs (1)
41_componentApplicationState.PersistAsJson("Service", _state);
Microsoft.AspNetCore.Components (1)
PersistentState\PersistentServicesRegistry.cs (1)
72state.PersistAsJson(_registryKey, _registrations);
Microsoft.AspNetCore.Components.Endpoints (1)
src\Components\Shared\src\ResourceCollectionProvider.cs (1)
40_state.PersistAsJson(ResourceCollectionUrlKey, _url);
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
EndpointHtmlRendererTest.cs (4)
1381state.PersistAsJson(renderMode, "persisted"); 1435state.PersistAsJson("key", "persisted"); 1473state.PersistAsJson("key", "persisted"); 1714State.PersistAsJson("key", "value");
Microsoft.AspNetCore.Components.Tests (7)
PersistentState\ComponentApplicationStateTest.cs (5)
89applicationState.PersistAsJson("MyState", myState); 107applicationState.PersistAsJson("MyState", myState); 110Assert.Throws<ArgumentException>(() => applicationState.PersistAsJson("MyState", myState)); 125applicationState.PersistAsJson("MyState", myState); 143applicationState.PersistAsJson<byte[]>("MyState", null);
PersistentState\ComponentStatePersistenceManagerTest.cs (2)
99persistenceManager.State.PersistAsJson("MyState", new byte[] { 1, 2, 3, 4 }); 149persistenceManager.State.PersistAsJson("MyState", new byte[] { 1, 2, 3, 4 });
Microsoft.AspNetCore.Components.WebAssembly (1)
src\Components\Shared\src\ResourceCollectionProvider.cs (1)
40_state.PersistAsJson(ResourceCollectionUrlKey, _url);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
AuthenticationStateSerializer.cs (1)
38_state.PersistAsJson(PersistenceKey, authenticationStateData);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
PersistComponentStateTagHelperTest.cs (4)
93manager.State.PersistAsJson("state", "state value"); 123manager.State.PersistAsJson("state", "state value"); 152manager.State.PersistAsJson("state", "state value"); 205manager.State.PersistAsJson("state", "state value");