Пример #1
0
        /// <inheritdoc cref="IPlanRequest"/>
        public void Pause()
        {
            CheckAndThrowIfDisposed();

            if (Status != PlanRequestStatus.Complete)
            {
                Status = PlanRequestStatus.Paused;
            }
        }
Пример #2
0
        /// <inheritdoc cref="IPlanRequest"/>
        public void Resume()
        {
            CheckAndThrowIfDisposed();

            if (Status != PlanRequestStatus.Complete)
            {
                Status = PlanRequestStatus.Running;
            }
        }
Пример #3
0
        /// <inheritdoc cref="IPlanRequest"/>
        public void Cancel()
        {
            CheckAndThrowIfDisposed();

            Status = PlanRequestStatus.Complete;
        }
Пример #4
0
 /// <inheritdoc cref="IDisposable"/>
 public void Dispose()
 {
     Status = PlanRequestStatus.Disposed;
     m_Plan = null;
 }