public void RestoreSnapshot(PackageHandler item, SnapshotHandler snapshot)
        {
            var src          = (FileSystemStorage.FileSystemHandler)item;
            var snapshotItem = (FileSystemSnapshotHandler)snapshot;

            File.Copy(snapshotItem.FilePath, src.FilePath, true);
        }
示例#2
0
        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));
 }
示例#4
0
 public async Task DeleteSnapshotAsync(SnapshotHandler snapshot)
 {
     var snapshotBlob = ((AzureSnapshotHandler)snapshot).Blob;
     await snapshotBlob.DeleteAsync();
 }