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

            IsAbandoned = true;
            return(_queue.AbandonAsync(this));
        }
Esempio n. 2
0
 public Task AbandonAsync()
 {
     return(_queue.AbandonAsync(Id));
 }