C# 클래스 MessageBus.Core.RpcConsumer

상속: RabbitMQ.Client.DefaultBasicConsumer, IRpcConsumer
파일 보기 프로젝트 열기: parshim/MessageBus 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
CallbackTimeout ( object state, bool timedout ) : void
CreateCallback ( string id, Type replyType, System.TimeSpan timeOut, Exception>.Action callback ) : CallbackInfo

메소드 상세

HandleBasicDeliver() 공개 메소드

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
리턴 void

HandleBasicReturn() 공개 메소드

public HandleBasicReturn ( string correlationId, int replyCode, string replyText ) : void
correlationId string
replyCode int
replyText string
리턴 void

HandleModelShutdown() 공개 메소드

public HandleModelShutdown ( object model, RabbitMQ.Client.ShutdownEventArgs reason ) : void
model object
reason RabbitMQ.Client.ShutdownEventArgs
리턴 void

RegisterCallback() 공개 메소드

public RegisterCallback ( string correlationId, Type replyType, System.TimeSpan timeOut, Exception>.Action callback ) : WaitHandle
correlationId string
replyType System.Type
timeOut System.TimeSpan
callback Exception>.Action
리턴 WaitHandle

RpcConsumer() 공개 메소드

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
리턴 System