Exemple #1
0
 public IMessage Receive(QueueReference qRef, TimeSpan timeout, IsMatch matcher, bool ack)
 {
     if (matcher == null)
     {
         return(Receive(qRef, MessageFactory.TimeSpanToMillis(timeout), ack));
     }
     else
     {
         return(ReceiveWithMatcher(qRef, MessageFactory.TimeSpanToMillis(timeout), matcher, ack));
     }
 }
Exemple #2
0
        public bool MoveNext(TimeSpan timeout)
        {
            int timeoutMillis = MessageFactory.TimeSpanToMillis(timeout);

            return(Subscription.Next(timeoutMillis, out current));
        }