about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Classes/SessionStorageProviderService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixRoomUtils.Web/Classes/SessionStorageProviderService.cs')
-rw-r--r--MatrixRoomUtils.Web/Classes/SessionStorageProviderService.cs28
1 files changed, 0 insertions, 28 deletions
diff --git a/MatrixRoomUtils.Web/Classes/SessionStorageProviderService.cs b/MatrixRoomUtils.Web/Classes/SessionStorageProviderService.cs
deleted file mode 100644

index a923015..0000000 --- a/MatrixRoomUtils.Web/Classes/SessionStorageProviderService.cs +++ /dev/null
@@ -1,28 +0,0 @@ -using Blazored.SessionStorage; -using LibMatrix.Interfaces.Services; - -namespace MatrixRoomUtils.Web.Classes; - -public class SessionStorageProviderService : IStorageProvider { - private readonly ISessionStorageService _sessionStorageService; - - public SessionStorageProviderService(ISessionStorageService sessionStorage) { - _sessionStorageService = sessionStorage; - } - - Task IStorageProvider.SaveAllChildrenAsync<T>(string key, T value) { - throw new NotImplementedException(); - } - - Task<T?> IStorageProvider.LoadAllChildrenAsync<T>(string key) where T : default => throw new NotImplementedException(); - - async Task IStorageProvider.SaveObjectAsync<T>(string key, T value) => await _sessionStorageService.SetItemAsync(key, value); - - async Task<T?> IStorageProvider.LoadObjectAsync<T>(string key) where T : default => await _sessionStorageService.GetItemAsync<T>(key); - - async Task<bool> IStorageProvider.ObjectExistsAsync(string key) => await _sessionStorageService.ContainKeyAsync(key); - - async Task<List<string>> IStorageProvider.GetAllKeysAsync() => (await _sessionStorageService.KeysAsync()).ToList(); - - async Task IStorageProvider.DeleteObjectAsync(string key) => await _sessionStorageService.RemoveItemAsync(key); -}