protected void Application_Start() { // Create Configuration SharedInfo.Create(Server.MapPath(@"~/")); //SharedInfo.Create(JsonConvert.DeserializeObject<AppConfig>(jsonConfig), nugetConfig); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); JobScheduler.Start(); }
private static SharedInfo Create(AppConfig config, ISettings settings) { if (settings == null) { throw new ArgumentNullException("settings"); } if (config == null) { throw new ArgumentNullException("config"); } return(_instance = (_instance ?? new SharedInfo(config, settings))); }
private static SharedInfo Create(AppConfig config, ISettings settings) { if (settings == null) throw new ArgumentNullException("settings"); if (config == null) throw new ArgumentNullException("config"); return _instance = (_instance ?? new SharedInfo(config, settings)); }