public void RestoreSnapshot(PackageHandler item, SnapshotHandler snapshot) { var src = (FileSystemStorage.FileSystemHandler)item; var snapshotItem = (FileSystemSnapshotHandler)snapshot; File.Copy(snapshotItem.FilePath, src.FilePath, true); }
public void RestoreSnapshot(PackageHandler item, SnapshotHandler snapshot) { var blob = ((AzurePackageHandler)item).Blob; var snapshotBlob = ((AzureSnapshotHandler)snapshot).Blob; blob.StartCopy(snapshotBlob); }
public async Task DeleteSnapshotAsync(SnapshotHandler snapshot) { var item = (FileSystemSnapshotHandler)snapshot; await Task.Run(() => File.Delete(item.FilePath)); }
public async Task DeleteSnapshotAsync(SnapshotHandler snapshot) { var snapshotBlob = ((AzureSnapshotHandler)snapshot).Blob; await snapshotBlob.DeleteAsync(); }