コード例 #1
0
 public Matcher(INextBusProvider provider)
 {
     _provider = provider;
     _stopsIntervalByLineDictionary = new Dictionary <string, IDictionary <int, int> >();
     _stopsIntervalByLineList       = new Dictionary <string, List <StopInterval> >();
     _tripsSequenceByLine           = new Dictionary <string, uint>();
     _tripsByLine        = new Dictionary <string, List <Trip> >();
     _blockingCollection = new BlockingCollection <Tuple <string, List <StopEta> > >();
     _locker             = new object();
 }
コード例 #2
0
        public Poller(INextBusProvider provider, IMatcher matcher)
        {
            _stops = new Dictionary <int, IDictionary <string, DateTime> >();
            _blockingCollection = new BlockingCollection <string>();
            _lineHandlers       = new List <Thread>();
            _locker             = new object();

            _provider = provider;
            _matcher  = matcher;
        }