Пример #1
0
 public LogCollector(IQueued<LogItem> qThread, ILogWriter writer)
 {
     this.writer = writer;
     filterQue = new ConcurrentQueue<Action<HashSet<int>>>();
     filter = new HashSet<int>();
     this.qThread = qThread;
     qThread.SetTimeout(writer.GetTimeout());
     qThread.OnReceive += Receive;
     qThread.OnTimeout += TimeOut;
 }
Пример #2
0
 public LogCollector(IQueued <LogItem> qThread, ILogWriter writer)
 {
     this.writer  = writer;
     filterQue    = new ConcurrentQueue <Action <HashSet <int> > >();
     filter       = new HashSet <int>();
     this.qThread = qThread;
     qThread.SetTimeout(writer.GetTimeout());
     qThread.OnReceive += Receive;
     qThread.OnTimeout += TimeOut;
 }