public class EventingBasicConsumer

Summary

Experimental class exposing an IBasicConsumer's methods as separate events.

Event Summary

Type Name Summary
EventHandler<BasicDeliverEventArgs> Received

Event fired on HandleBasicDeliver.

EventHandler<ConsumerEventArgs> Registered

Event fired on HandleBasicConsumeOk.

EventHandler<ShutdownEventArgs> Shutdown

Event fired on HandleModelShutdown.

EventHandler<ConsumerEventArgs> Unregistered

Event fired on HandleBasicCancelOk.

Constructor Summary

Flags Name Summary
public EventingBasicConsumer(IModel model)

Constructor which sets the Model property to the given value.

Method Summary

Flags Name Summary
public virtual void HandleBasicCancelOk(string consumerTag)

Fires the Unregistered event.

public virtual void HandleBasicConsumeOk(string consumerTag)

Fires the Registered event.

public virtual void HandleBasicDeliver(string consumerTag, ulong deliveryTag, bool redelivered, string exchange, string routingKey, IBasicProperties properties, byte[] body)

Fires the Received event.

public virtual void HandleModelShutdown(object model, ShutdownEventArgs reason)

Fires the Shutdown event.

Event Detail

EventHandler<BasicDeliverEventArgs> Received

Summary

Event fired on HandleBasicDeliver.

EventHandler<ConsumerEventArgs> Registered

Summary

Event fired on HandleBasicConsumeOk.

EventHandler<ShutdownEventArgs> Shutdown

Summary

Event fired on HandleModelShutdown.

EventHandler<ConsumerEventArgs> Unregistered

Summary

Event fired on HandleBasicCancelOk.

Constructor Detail

EventingBasicConsumer

public EventingBasicConsumer(IModel model)

Parameters
Name Type
model IModel

Summary

Constructor which sets the Model property to the given value.

Method Detail

HandleBasicCancelOk

public virtual void HandleBasicCancelOk(string consumerTag)

Flags public virtual
Return type void
Parameters
Name Type
consumerTag string

Summary

Fires the Unregistered event.

HandleBasicConsumeOk

public virtual void HandleBasicConsumeOk(string consumerTag)

Flags public virtual
Return type void
Parameters
Name Type
consumerTag string

Summary

Fires the Registered event.

HandleBasicDeliver

public virtual void HandleBasicDeliver(string consumerTag, ulong deliveryTag, bool redelivered, string exchange, string routingKey, IBasicProperties properties, byte[] body)

Flags public virtual
Return type void
Parameters
Name Type
consumerTag string
deliveryTag ulong
redelivered bool
exchange string
routingKey string
properties IBasicProperties
body byte[]

Summary

Fires the Received event.

HandleModelShutdown

public virtual void HandleModelShutdown(object model, ShutdownEventArgs reason)

Flags public virtual
Return type void
Parameters
Name Type
model object
reason ShutdownEventArgs

Summary

Fires the Shutdown event.