Exemple #1
0
 bool IEnumerator.MoveNext()
 {
     try
     {
         _current = _queue.Dequeue();
         return(true);
     }
     catch (EndOfStreamException)
     {
         _current = default(T);
         return(false);
     }
 }
Exemple #2
0
 public bool Dequeue(TimeSpan timeout, out BasicDeliverEventArgs message)
 {
     return(_queue.Dequeue(timeout, out message));
 }