public async Task ResetWorkspace(IJSRuntime js) { var localStorageManager = new LocalStorageManager(LocalStorageRepository); await localStorageManager.Clear(); await js.ReloadApplication(); }
public async Task RestoreWorkspace(IJSRuntime js, byte[] data) { var localStorageManager = new LocalStorageManager(LocalStorageRepository); await localStorageManager.Clear(); await localStorageManager.ImportFromZip(data); await js.ReloadApplication(); }