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); }
private static void Main(string[] args) { var coordinator = new Coordinator { FirstCoroutine, SecondCoroutine, ThirdCoroutine }; coordinator.Start(); }
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); }
private static void Main(string[] args) { var coordinator = new Coordinator { FirstCoroutine, SecondCoroutine, ThirdCoroutine }; coordinator.Start(); }
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); }
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); }
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); }
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); }