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)); } }
public bool MoveNext(TimeSpan timeout) { int timeoutMillis = MessageFactory.TimeSpanToMillis(timeout); return(Subscription.Next(timeoutMillis, out current)); }