public LogTailParser() { var section = ConfigurationManager.GetSection("LogTail") as LogConfigurationSection; cursor = new OffsetCursor<long>("log"); if (section != null) { logs = section.Logs; } if (ConfigurationManager.AppSettings["warmGeoLocation"] == "true") { Task.Factory.StartNew(new Action(() => { var test = Geolocation.Instance; })); } }
public WebPagetestParser() { siteSection = ConfigurationManager.GetSection("WebPagetest") as SiteConfigurationSection; cursor = new OffsetCursor<string>("wpt"); if (siteSection == null) { throw new InvalidOperationException("No site section found for webpagetest"); } if (String.IsNullOrWhiteSpace(siteSection.KeysToKeep)) { keysToKeep = null; } else { keysToKeep = new List<string>(siteSection.KeysToKeep.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)); } }