public BackgroundPoller(ref CityDetails details)
     : base(false, EventResetMode.ManualReset)
 {
     this.details = details;
     worker = new BackgroundWorker();
     entriesSearched = 0;
     stopWatch = new System.Diagnostics.Stopwatch();
     clwParseURLCompletedHandler = new CLWParseFilter.CLWParseURLCompletedHandler(this.OnEntryFound);
     worker.DoWork += this.PollCity;
     worker.RunWorkerCompleted += this.OnPollDone;
     worker.RunWorkerAsync();
 }
 public BackgroundAreaPoller(AreaDetails _areaDetails)
 {
     aggregatedEntryParsedHandlers = null;
     entryCallbacks = new Dictionary<string, BaseBackgroundPoller.EntryParsedHandler>();
     this.areaDetails = _areaDetails;
     worker = new BackgroundWorker();
     waitHandle = new EventWaitHandle(false, EventResetMode.ManualReset);
     entriesSearched = 0;
     numEntriesToSearch = 0;
     stopWatch = new System.Diagnostics.Stopwatch();
     clwParseURLCompletedHandler = new CLWParseFilter.CLWParseURLCompletedHandler(this.OnEntryParsed);
     worker.DoWork += this.PollCity;
     worker.RunWorkerCompleted += this.OnPollDone;
 }