C# Class MessageBus.Core.RpcConsumer

Inheritance: RabbitMQ.Client.DefaultBasicConsumer, IRpcConsumer
Afficher le fichier Open project: parshim/MessageBus Class Usage Examples

Méthodes publiques

Méthode Description
HandleBasicDeliver ( string consumerTag, ulong deliveryTag, bool redelivered, string exchange, string routingKey, IBasicProperties properties, byte body ) : void
HandleBasicReturn ( string correlationId, int replyCode, string replyText ) : void
HandleModelShutdown ( object model, RabbitMQ.Client.ShutdownEventArgs reason ) : void
RegisterCallback ( string correlationId, Type replyType, System.TimeSpan timeOut, Exception>.Action callback ) : WaitHandle
RpcConsumer ( string busId, IModel model, IMessageHelper messageHelper, ISerializer>.Dictionary serializers, ITrace trace ) : System

Private Methods

Méthode Description
CallbackTimeout ( object state, bool timedout ) : void
CreateCallback ( string id, Type replyType, System.TimeSpan timeOut, Exception>.Action callback ) : CallbackInfo

Method Details

HandleBasicDeliver() public méthode

public HandleBasicDeliver ( string consumerTag, ulong deliveryTag, bool redelivered, string exchange, string routingKey, IBasicProperties properties, byte body ) : void
consumerTag string
deliveryTag ulong
redelivered bool
exchange string
routingKey string
properties IBasicProperties
body byte
Résultat void

HandleBasicReturn() public méthode

public HandleBasicReturn ( string correlationId, int replyCode, string replyText ) : void
correlationId string
replyCode int
replyText string
Résultat void

HandleModelShutdown() public méthode

public HandleModelShutdown ( object model, RabbitMQ.Client.ShutdownEventArgs reason ) : void
model object
reason RabbitMQ.Client.ShutdownEventArgs
Résultat void

RegisterCallback() public méthode

public RegisterCallback ( string correlationId, Type replyType, System.TimeSpan timeOut, Exception>.Action callback ) : WaitHandle
correlationId string
replyType System.Type
timeOut System.TimeSpan
callback Exception>.Action
Résultat WaitHandle

RpcConsumer() public méthode

public RpcConsumer ( string busId, IModel model, IMessageHelper messageHelper, ISerializer>.Dictionary serializers, ITrace trace ) : System
busId string
model IModel
messageHelper IMessageHelper
serializers ISerializer>.Dictionary
trace ITrace
Résultat System