Defines an object that receive messages from the realm. More...
Public Member Functions | |
IEnumerable< IMessage > | GetSynchronousReader (TimeSpan timeout) |
Creates a synchronous message reader. More... | |
Properties | |
IDestination | Destination [get] |
The destination being consumed More... | |
Defines an object that receive messages from the realm.
IEnumerable<IMessage> MyChannels.Nirvana.IConsumer.GetSynchronousReader | ( | TimeSpan | timeout | ) |
Creates a synchronous message reader.
var messages = consumer.GetSynchronousReader(TimeSpan.FromMinutes(1)) foreach (var message in messages) { // process message }
timeout | The maximum time allowed to expire in between receiving messages. |
|
get |
The destination being consumed