Пример #1
0
        /// <summary>
        /// 清理某个容器实体池
        /// </summary>
        /// <param name="containerName">容器名</param>
        /// <param name="count">容器实体池的最大保留量</param>
        public void Clean(string containerName, int count)
        {
            EntityContainer container = GetContainer(containerName);

            if (container != null)
            {
                container.Clean(count);
            }
            else
            {
                throw new XFrameworkException("[EntityContainer] null container");
            }
        }
Пример #2
0
 private void InternalClean(EntityContainer entityContainer, int count)
 {
     entityContainer.Clean(count);
 }