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; }
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; }