示例#1
0
            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,
                });
            }
示例#2
0
            public static object GetTargets()
            {
                var one = new PrintTask(Output)
                {
                    Description = "one"
                };
                var two = new PrintTask(Output)
                {
                    Description = "two"
                };

                return(new {
                    One = one,
                    Two = two,
                });
            }