예제 #1
0
 static public void Clear()
 {
     if (m_Recycler != null)
     {
         m_Recycler.Release();
     }
 }
예제 #2
0
        /// <summary>
        /// 释放工厂所创建的所有对象,包括空闲的对象
        /// </summary>
        public static void Release()
        {
            m_isInit = false;

            foreach (var pair in m_mapObject)
            {
                pair.Value.ReleaseInFactory();
                pair.Value.Dispose();
            }
            m_mapObject.Clear();

            m_recycler.Release();

            m_viewRoot = null;
        }