예제 #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));
 }