Exemplo n.º 1
0
        public Task CompleteAsync()
        {
            if (IsAbandoned || IsCompleted)
            {
                throw new InvalidOperationException("Queue entry has already been completed or abandoned.");
            }

            IsCompleted = true;
            return(_queue.CompleteAsync(this));
        }
Exemplo n.º 2
0
        public Task CompleteAsync()
        {
            if (_isCompleted)
            {
                return(TaskHelper.Completed());
            }

            _isCompleted = true;
            return(_queue.CompleteAsync(this));
        }
Exemplo n.º 3
0
 public Task CompleteAsync()
 {
     _isCompleted = true;
     return(_queue.CompleteAsync(Id));
 }
Exemplo n.º 4
0
 public Task CompleteAsync()
 {
     return(_queue.CompleteAsync(this));
 }