Ejemplo n.º 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());
        }
Ejemplo n.º 2
0
 /// <summary>	Returns all poisoned items stored for this queue. </summary>
 /// <remarks>	Delegates to the underlying job queue. </remarks>
 /// <returns>	An enumerable collection of poisoned items (that may be empty). </returns>
 public IEnumerable <TQueuePoison> GetPoisoned()
 {
     return(_durableJobQueue.GetPoisoned());
 }