Exemplo n.º 1
0
        static void Main(string[] args)
        {
            IProducer p = new Producer();

            var d1 = new DeltaDetector(p, 3);
            var d2 = new DeltaDetector(p, 5);

            // TODO: when the each task complete, write the delta


            Console.ReadKey();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            IProducer p = new Producer();

            var d1 = new DeltaDetector(p, 3);
            var d2 = new DeltaDetector(p, 5);

            // TODO: when the each task complete, write the delta
            d1.WhenCrossDelta.ContinueWith(c => Console.WriteLine($"Complete {c.Result}"));
            d2.WhenCrossDelta.ContinueWith(c => Console.WriteLine($"Complete {c.Result}"));

            Console.ReadLine();
        }