Пример #1
0
        public void Start()
        {
            Task.Run(() =>
            {
                ReadingNode.Start(() =>
                {
                    handler.Read(ReadingNode);
                });
            });
            Task.Run(() =>
            {
                WritingNode.Start(() =>
                {
                    handler.Write(WritingNode);
                });
            });

            Monitor(handler.AllStop);
        }
Пример #2
0
 public void Stop()
 {
     ReadingNode.Stop();
     WritingNode.Stop();
 }