Esempio n. 1
0
        public IList <string> ListFiles(Schedule schedule, DateTime when)
        {
            ListFilesTask task = new ListFilesTask(schedule, when);

            ExecuteTask(task);

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

            if (task.Result.StartsWith("Error:"))
            {
                throw new Exception(task.Result);
            }
            return(task.Files);
        }
Esempio n. 2
0
        public IList<string> ListFiles(Schedule schedule, DateTime when)
        {
            ListFilesTask task = new ListFilesTask(schedule, when);
            ExecuteTask(task);

            if (task.IsAborted)
                return null;

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