public void StartReader() { run = new AtomicRunBoolean(); if (IsThreadNotAlive()) { threadRead = new Thread(ReadConnection); threadRead.Name = "CrystalDifusionReaderThread-" + connectionId; threadRead.Start(); } }
public void StartWriter() { run = new AtomicRunBoolean(); if (IsThreadNotAlive()) { threadWrite = new Thread(Write); threadWrite.Name = "CrsytalThreadWriter-" + connectionId; threadWrite.Start(); } }
public void Start() { run = new AtomicRunBoolean(); if (IsThreadNotAlive()) { threadWatcher = new Thread(() => { Watcher(); }); threadWatcher.Start(); } }
public CrystalConnectionWriterEvent(ICrystalDifusionConnectionBase conn, ILogger logger, CrystalConnectionEvent disconnectEvent, BlockingCollection <string> queue, string connectionId) { this.conn = conn; this.logger = logger; this.disconnectEvent = disconnectEvent; this.queue = queue; this.connectionId = connectionId; run = new AtomicRunBoolean(); }