public static object GetTargets() { var one = new PrintTask(Output) { Description = "one" }; var two = new PrintTask(Output) { Description = "two" }; return new { One = one, Two = two, }; }
public static object GetTargets(IParameters parameters) { var one = new PrintTask(Output) { Description = parameters.Required<string>("one") }; var two = new PrintTask(Output) { Description = parameters.Required<string>("two") }; return new { One = one, Two = two, }; }