protected void Application_Start() { EntityDic.LoadAll(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); }
public virtual void Shutdown() { if (SystemDic != null) { SystemDic.Clear(); SystemDic = null; } if (SingletonComponentDic != null) { SingletonComponentDic.Clear(); SingletonComponentDic = null; } if (ComponentDic != null) { ComponentDic.Clear(); ComponentDic = null; } if (EntityDic != null) { foreach (var v in EntityDic) { if (v.Value != null) { v.Value.Dispose(); } } EntityDic.Clear(); EntityDic = null; } }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); XmlConfigurator.Configure(); EntityDic.LoadAll(); }
public void Clear() { foreach (KeyValuePair <int, NetEntity> kv in EntityDic) { kv.Value.Clear(); } EntityDic.Clear(); EntityInfoDic.Clear(); ObstacleDic.Clear(); DropItemDic.Clear(); BackItemMapDic.Clear(); TotalAreaItemMapDic.Clear(); RareEnergyDic.Clear(); SugarEntityDic.Clear(); }