MyChannels.Nirvana.IConsumer Interface Reference

Defines an object that receive messages from the realm. More...

Inheritance diagram for MyChannels.Nirvana.IConsumer:
MyChannels.Nirvana.ITransactionalConsumer

Public Member Functions

IEnumerable< IMessageGetSynchronousReader (TimeSpan timeout)
 Creates a synchronous message reader. More...
 

Properties

IDestination Destination [get]
 The destination being consumed More...
 

Detailed Description

Defines an object that receive messages from the realm.

Member Function Documentation

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 }

Parameters
timeoutThe maximum time allowed to expire in between receiving messages.
Returns

Property Documentation

IDestination MyChannels.Nirvana.IConsumer.Destination
get

The destination being consumed