示例#1
0
 private static void Main(string[] args)
 {
     var coordinator = new Coordinator<string>(FirstCoroutine,
                                               SecondCoroutine,
                                               ThirdCoroutine);
     string finalResult = coordinator.Start("m1");
     Console.WriteLine("Final result: {0}", finalResult);
 }
示例#2
0
 private static void Main(string[] args)
 {
     var coordinator = new Coordinator { 
         FirstCoroutine,
         SecondCoroutine,
         ThirdCoroutine
     };
     coordinator.Start();
 }
示例#3
0
        private static void Main(string[] args)
        {
            var coordinator = new Coordinator <string>(FirstCoroutine,
                                                       SecondCoroutine,
                                                       ThirdCoroutine);
            string finalResult = coordinator.Start("m1");

            Console.WriteLine("Final result: {0}", finalResult);
        }
示例#4
0
        private static void Main(string[] args)
        {
            var coordinator = new Coordinator {
                FirstCoroutine,
                SecondCoroutine,
                ThirdCoroutine
            };

            coordinator.Start();
        }
示例#5
0
 private static void Main(string[] args)
 {
     var coordinator = new Coordinator();
     for (int i = 0; i < 5; i++)
     {
         // Avoid capturing the index variable
         int copy = i;
         coordinator.Add(x => CreateCoroutine(copy, x));
     };
     coordinator.Start(3);
 }
示例#6
0
        private static void Main(string[] args)
        {
            var coordinator = new Coordinator();

            for (int i = 0; i < 5; i++)
            {
                // Avoid capturing the index variable
                int copy = i;
                coordinator.Add(x => CreateCoroutine(copy, x));
            }
            ;
            coordinator.Start(3);
        }
示例#7
0
 private static void Main(string[] args)
 {
     Coordinator coordinator = new Coordinator(EntryPoint);
     coordinator.Start();            
 }
        private static void Main(string[] args)
        {
            Coordinator coordinator = new Coordinator();

            coordinator.Start(Producer);
        }
示例#9
0
        private static void Main(string[] args)
        {
            Coordinator coordinator = new Coordinator(EntryPoint);

            coordinator.Start();
        }
示例#10
0
 private static void Main(string[] args)
 {
     Coordinator coordinator = new Coordinator();
     coordinator.Start(Producer);
 }