2 instantiations of ProtectedBrowserStorageResult
Microsoft.AspNetCore.Components.Server (2)
ProtectedBrowserStorage\ProtectedBrowserStorage.cs (2)
109new ProtectedBrowserStorageResult<TValue>(false, default) : 110new ProtectedBrowserStorageResult<TValue>(true, Unprotect<TValue>(purpose, protectedJson));
7 references to ProtectedBrowserStorageResult
Aspire.Dashboard (2)
Components\Pages\IPageWithSessionAndUrlState.cs (1)
72var result = await page.SessionStorage.GetAsync<TSerializableViewModel>(page.SessionStorageKey).ConfigureAwait(false);
Utils\ProtectedLocalStorageExtensions.cs (1)
18public static async Task<ProtectedBrowserStorageResult<T>> SafeGetAsync<T>(this ProtectedLocalStorage value, string key)
Microsoft.AspNetCore.Components.Server (2)
ProtectedBrowserStorage\ProtectedBrowserStorage.cs (2)
89public ValueTask<ProtectedBrowserStorageResult<TValue>> GetAsync<TValue>(string key) 104public async ValueTask<ProtectedBrowserStorageResult<TValue>> GetAsync<TValue>(string purpose, string key)
Microsoft.AspNetCore.Components.Server.Tests (3)
ProtectedBrowserStorageTest.cs (3)
108var result = await protectedBrowserStorage.GetAsync<TestModel>(keyName); 135var result = await protectedBrowserStorage.GetAsync<TestModel>(customPurpose, keyName); 157var result = await protectedBrowserStorage.GetAsync<TestModel>("testKey");