コード例 #1
0
        /// <summary>
        /// 执行与释放或重置托管资源相关的应用程序定义的任务。
        /// </summary>
        protected override void DisposeManaged()
        {
            if (this._logger != null)
            {
                this._logger.Write(this._Items.ToArray());
            }

            this._logger = null;
            this._Items  = null;
            Log.ClearContext();
            base.DisposeManaged();
        }