protected void Application_Start(object sender, EventArgs e) { var preloadQuotePrices = bool.Parse(ConfigurationManager.AppSettings["PreloadQuotePricesOnStartup"]); if (preloadQuotePrices) { Task.Factory.StartNew(() => QuotePricePreloader.Run()); } }
public void Run() { QuotePricePreloader.Run(); }