示例#1
0
 public BackupStatusReport GetBackupStatus(Guid siteId)
 {
     try
     {
         BitplateBackupServiceReference.BackupServiceClient backupClient = new BitplateBackupServiceReference.BackupServiceClient();
         return(JSONSerializer.Deserialize <BackupStatusReport>(backupClient.GetBackupStatus(siteId), true));
     }
     catch (Exception ex)
     {
         BackupStatusReport exceptioReport = new BackupStatusReport();
         exceptioReport.BackupCompleted = true;
         exceptioReport.StatusMessage   = "Kan BitBackupService niet vinden.\r\n" + ex.ToString();
         return(exceptioReport);
     }
 }
示例#2
0
 public BackupStatusReport GetBackupStatus()
 {
     BitplateBackupServiceReference.BackupServiceClient backupClient = new BitplateBackupServiceReference.BackupServiceClient();
     return(JSONSerializer.Deserialize <BackupStatusReport>(backupClient.GetBackupStatus(SessionObject.CurrentSite.ID), true));
 }