Пример #1
0
        public List <ManifestEntry> ListBackupEntries(Schedule schedule)
        {
            ListBackupEntriesTask task = new ListBackupEntriesTask(schedule);

            ExecuteTask(task);

            if (task.IsAborted)
            {
                return(null);
            }

            if (task.Result.StartsWith("Error:"))
            {
                throw new Exception(task.Result);
            }

            return(task.Backups);
        }
Пример #2
0
        public List<ManifestEntry> ListBackupEntries(Schedule schedule)
        {
            ListBackupEntriesTask task = new ListBackupEntriesTask(schedule);
            ExecuteTask(task);

            if (task.IsAborted)
                return null;

            if (task.Result.StartsWith("Error:"))
                throw new Exception(task.Result);

            return task.Backups;
        }