ASP.Net Application Warmup - Exposing Collections
问题 My MVC application currently uses the Global.asax , Application_Start method to load tons of data, and then exposes it as collections. For example: Current Usage Example: // Global.asax public static DataRepository Repository { get; set; } protected void Application_Start() { // All the normal stuff... // Preload this repository. DataRepository = new DataRepository(); } // HomeController.cs Example public ActionResult Index(){ return Json(MyApplication.Repository.GetSomeCollection(),