Beispiel #1
0
 public void Dispose()
 {
     if (!_isDisposed)
     {
         _isDisposed = true;
         Cancellation?.Dispose();
     }
 }
 public void Dispose()
 {
     // INFO
     PgModel.StopWatch.Stop();
     IsRuning = false;
     SaveParam();
     Cancellation.Dispose();
 }
        private void Dispose()
        {
            if (Disposed)
            {
                return;
            }

            Disposed = true;
            Completion.TrySetCanceled(Cancellation.Token);
            Cancellation.Dispose();
            CancellationRegistration.Dispose();
        }
Beispiel #4
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    Cancellation.Dispose();
                }

                disposedValue = true;
            }
        }
Beispiel #5
0
 protected override void OnDispose()
 {
     try
     {
         Stop();
     }
     finally
     {
         Cancellation.Dispose();
         Cancellation = null;
     }
 }
Beispiel #6
0
        /// <inheritdoc />
        /// <summary>
        /// Dispose this evaluator and all system resources used by this evaluator.
        /// If a load task is in progress, it will be cancelled and disposed asynchronously.
        /// </summary>
        public void Dispose()
        {
            // unsubscribe from events
            _entities.Moved   -= EntitiesOnMoved;
            _entities.Changed -= EntitiesOnChanged;
            _entities.Deleted -= EntitiesOnDeleted;

            // stop watching file changes
            _fileWatcher.Dispose();

            // cancel current loading operation
            Cancellation.Cancel();
            LoadTask.ContinueWith(parent =>
            {
                Cancellation.Dispose();
                foreach (var group in _backBuffer)
                {
                    group.Dispose();
                }
                _backBuffer  = null;
                _frontBuffer = null;
            });
        }
Beispiel #7
0
 public void Dispose()
 {
     Cancellation.Dispose();
 }
Beispiel #8
0
 private void Dispose()
 {
     Completion = null;
     Cancellation.Dispose();
     CancellationRegistration.Dispose();
 }
Beispiel #9
0
 public void Dispose()
 {
     Cancellation.Cancel();
     ProgressController?.Close();
     Cancellation?.Dispose();
 }