Example #1
0
        protected void ClearAllQueues(IDurableJobQueue <TQueue, TQueuePoison> storage)
        {
            SlideItemsToPending(storage);
            Assert.Empty(storage.GetQueued());

            foreach (var item in storage.GetPending())
            {
                storage.Complete(item);
            }
            Assert.Empty(storage.GetPending());

            foreach (var item in storage.GetPoisoned())
            {
                storage.Delete(item);
            }
            Assert.Empty(storage.GetPoisoned());
        }
Example #2
0
 /// <summary>	Returns all queue items stored for this queue. </summary>
 /// <remarks>	Delegates to the underlying job queue. </remarks>
 /// <returns>	An enumerable collection of queue items (that may be empty). </returns>
 public IEnumerable <TQueue> GetQueued()
 {
     return(_durableJobQueue.GetQueued());
 }