Пример #1
0
 /// <summary>Tries to peek the current a message from the queue, which may complete synchronously or asynchronously if no message is ready</summary>
 /// <param name="properties">The properties to read</param>
 /// <param name="timeout">The time allowed, defaults to infinite.  Use <see cref="F:System.TimeSpan.Zero" /> to return without waiting</param>
 /// <returns>The a task that contains a message, or a task will a null Result if the receive times out</returns>
 public Task <Message> PeekAsync(Properties properties, TimeSpan?timeout = default(TimeSpan?))
 {
     return(_queueReader.PeekAsync(properties, timeout));
 }