public void StartReader()
        {
            run = new AtomicRunBoolean();
            if (IsThreadNotAlive())
            {
                threadRead      = new Thread(ReadConnection);
                threadRead.Name = "CrystalDifusionReaderThread-" + connectionId;

                threadRead.Start();
            }
        }
Example #2
0
        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();
     }
 }
Example #4
0
        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();
        }