public CrystalConnectionWatcher(BlockingCollection <string> queue, CrystalConnectionEvent disconnectEvent, ILogger logger)
        {
            this.queue           = queue;
            this.disconnectEvent = disconnectEvent;
            this.logger          = logger;

            lastMessageTime = DateTime.Now;

            toleranceTime = TimeSpan.FromSeconds(6);
        }
 public CrystalConnectionReaderEvent(CrystalConnectionMessageHandle handle,
                                     ICrystalDifusionConnectionBase conn,
                                     ILogger logger,
                                     CrystalConnectionEvent disconnectEvent,
                                     string connectionId)
 {
     this.handle          = handle;
     this.conn            = conn;
     this.logger          = logger;
     this.disconnectEvent = disconnectEvent;
     this.connectionId    = connectionId;
 }
Esempio n. 3
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();
        }