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); }
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; }