Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var steps = new List<Step>();

            //steps.Add(new Step {
            //    Action = "import-new-users",
            //    Parameters = new string[] {
            //        "uwp",
            //        "aug_threads",
            //        "users"
            //    }
            // });

            steps.Add(new Step
            {
                Action = "extract-user-activies",
                Parameters = new string[] {
                    "uwp",
                    "aug_threads"
                }
            });

            var factory = new DefaultActionFactory();

            foreach(var step in steps)
            {
                var action = factory.CreateInstance(step.Action);

                var task = action.RunAsync(step.Parameters);

                task.Wait();
            }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var steps = new List <Step>();

            //steps.Add(new Step {
            //    Action = "import-new-users",
            //    Parameters = new string[] {
            //        "uwp",
            //        "aug_threads",
            //        "users"
            //    }
            // });

            steps.Add(new Step
            {
                Action     = "extract-user-activies",
                Parameters = new string[] {
                    "uwp",
                    "aug_threads"
                }
            });

            var factory = new DefaultActionFactory();

            foreach (var step in steps)
            {
                var action = factory.CreateInstance(step.Action);

                var task = action.RunAsync(step.Parameters);

                task.Wait();
            }
        }