Exemplo n.º 1
0
        /// <summary>
        /// Stops backup process immidietly. This is not secure variant and works fine for storages only. For stopping compression it needs to be reworked
        /// </summary>
        public void StopForcibly()
        {
            _log.ProcedureCall("StopForcibly::start");

            _aborting = true;
            _log.WriteLine(LoggingEvent.Error, _backupAbortedByUser);
            // cleaning tasls about copying
            _afterBackupEventManager.Abort();
            _beforeBackupEventManager.Abort();
            _compressionManager.Abort();
            _copyManager.Abort();
            _imageCreationManager.Abort();

            // Alarming that all finished
            if (_onBackupFinished != null)
            {
                _onBackupFinished.Invoke();
            }
        }