Exemplo n.º 1
0
 protected void Application_Start()
 {
     EntityDic.LoadAll();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
 }
Exemplo n.º 2
0
    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;
        }
    }
Exemplo n.º 3
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            XmlConfigurator.Configure();

            EntityDic.LoadAll();
        }
Exemplo n.º 4
0
 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();
 }