public BackupProgress StartBackupRestore(BackupRestore backupRestore) { if (CoreBaseSettings.Standalone) { TenantExtra.DemandControlPanelPermission(); } BackupHandler.StartRestore(backupRestore.BackupId, backupRestore.StorageType, backupRestore.StorageParams, backupRestore.Notify); return(BackupHandler.GetBackupProgress()); }
private BackupProgress StartBackupRestore(BackupRestore backupRestore) { if (CoreBaseSettings.Standalone) { TenantExtra.DemandControlPanelPermission(); } var storageParams = backupRestore.StorageParams == null ? new Dictionary <string, string>() : backupRestore.StorageParams.ToDictionary(r => r.Key.ToString(), r => r.Value.ToString()); BackupHandler.StartRestore(backupRestore.BackupId, (BackupStorageType)Int32.Parse(backupRestore.StorageType.ToString()), storageParams, backupRestore.Notify); return(BackupHandler.GetBackupProgress()); }