예제 #1
0
        public async Task ResetWorkspace(IJSRuntime js)
        {
            var localStorageManager = new LocalStorageManager(LocalStorageRepository);
            await localStorageManager.Clear();

            await js.ReloadApplication();
        }
예제 #2
0
        public async Task RestoreWorkspace(IJSRuntime js, byte[] data)
        {
            var localStorageManager = new LocalStorageManager(LocalStorageRepository);
            await localStorageManager.Clear();

            await localStorageManager.ImportFromZip(data);

            await js.ReloadApplication();
        }