public class EventingBasicConsumer

Summary

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

Remarks

This class is experimental, and its interface may change radically from release to release.

Event Summary

Type Name Summary
BasicDeliverEventHandler Received

Event fired on HandleBasicDeliver.

ConsumerEventHandler Registered

Event fired on HandleBasicConsumeOk.

ConsumerShutdownEventHandler Shutdown

Event fired on HandleModelShutdown.

ConsumerEventHandler Unregistered

Event fired on HandleBasicCancelOk.

Constructor Summary

Flags Name Summary
public EventingBasicConsumer()

(undocumented)

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(IModel model, ShutdownEventArgs reason)

Fires the Shutdown event.

Event Detail

BasicDeliverEventHandler Received

Summary

Event fired on HandleBasicDeliver.

ConsumerEventHandler Registered

Summary

Event fired on HandleBasicConsumeOk.

ConsumerShutdownEventHandler Shutdown

Summary

Event fired on HandleModelShutdown.

ConsumerEventHandler Unregistered

Summary

Event fired on HandleBasicCancelOk.

Constructor Detail

EventingBasicConsumer

public EventingBasicConsumer()

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(IModel model, ShutdownEventArgs reason)

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

Summary

Fires the Shutdown event.