示例#1
0
        }         // ctor

        /// <summary></summary>
        /// <param name="disposing"></param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                logListController?.Dispose();
                logFile?.Dispose();
                logFile = null;
                ConfigLogItemCount--;
            }
            base.Dispose(disposing);
        }         // proc Disposing
示例#2
0
        }         // ctor

        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing)
                {
                    CancelJobs();

                    CronIdleActive = false;
                    Server.Queue.CancelCommand(CancelJobs);
                    Server.Queue.CancelCommand(RefreshCronServices);

                    this.GetService <IServiceContainer>(false)?.RemoveService(typeof(IDECronEngine));

                    currentJobs.Dispose();
                    cronItemCacheController.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }         // proc Dispose