Beispiel #1
0
 internal ListMonitorer(string key, XmlDownload dow)
 {
     this.key       = key;
     this.dow       = dow;
     timer          = new Timer(30 * 60 * 1000);
     timer.Elapsed += (o, e) =>
     {
         if (Check(out var changed))
         {
             CompaniesUpdated(o, new MonitorEventArgs(changed));
         }
     };
 }
Beispiel #2
0
 public FocusKeyManager(string focusKey)
 {
     this.focusKey = focusKey;
     Scorer        = new Scorer();
     downloader    = new XmlDownload(focusKey);
     Access        = new XmlAccess(
         new List <IXmlCache>()
     {
         new AvailabilityAccess(GetAvailableMethods()),
         new SingleXmlMemoryCache(),
         new XmlFileSystemCache()
     }, downloader);
 }