public void Start() { Task.Run(() => { ReadingNode.Start(() => { handler.Read(ReadingNode); }); }); Task.Run(() => { WritingNode.Start(() => { handler.Write(WritingNode); }); }); Monitor(handler.AllStop); }
public void Stop() { ReadingNode.Stop(); WritingNode.Stop(); }