コード例 #1
0
 internal void RegisterProgressHandler(IJobProgressHandler handler)
 {
     if (handler != null)
     {
         _progressHandler = handler;
     }
 }
コード例 #2
0
        public void Dispose()
        {
            // _executionState = null;
            _progressHandler = null;

            if (_recoveryThread != null)
            {
                if (_recoveryThread != null)
                {
                    _recoveryThread.Abort();
                }
            }
        }
コード例 #3
0
ファイル: RecoveryJobBase.cs プロジェクト: waqashaneef/NosDB
        public virtual void Dispose()
        {
            //_executionStatus.Status = RecoveryStatus.Cancelled;
            //_executionStatus.StopTime = DateTime.Now;
            //_progressHandler.SubmitRecoveryState(_executionStatus);

            if (_collections != null)
            {
                _collections = null;
            }

            //_executionStatus = null;
            _progressHandler = null;

            if (_recoveryThread != null)
            {
                _recoveryThread.Abort();
                _recoveryThread = null;
            }
        }