private TaskResult Execute(FileSystemNewDirectoryParameters data) { foreach (string path in data.Path.Execute()) { Container.Storage.NewDirectory(path); } return(TaskResult.Successful); }
public ITask Execute(Action <FileSystemNewDirectoryParameters> parameters) { return(new FileSystemNewDirectoryTask(() => { FileSystemNewDirectoryParameters instance = new FileSystemNewDirectoryParameters { }; parameters(instance); return instance; })); }