Exemplo n.º 1
0
 public RabbitConsumer(IMessageBus messageBus, IConsumerBuildStrategy buildStrategy, RabbitConsumerOptions queue, ISubscriptionResult rabbitToken)
 {
     MessageBus    = messageBus;
     BuildStrategy = buildStrategy;
     Queue         = queue;
     RabbitToken   = rabbitToken;
 }
 public IRabbitConsumerBuilderLocalTopic <TPayload> ReceiveDefaultFormat()
 {
     _receiveRaw = false;
     _strategy   = new DefaultConsumerBuildStrategy <TPayload>(_bus);
     return(this);
 }
 public IRabbitConsumerBuilderLocalTopic <TPayload> TransformFrom <TRemote>(Func <TRemote, string, Envelope <TPayload> > transform, Func <TRemote, string> getTopic = null)
     where TRemote : class
 {
     _strategy = new TransformingConsumerBuildStrategy <TPayload, TRemote>(_bus, transform, getTopic);
     return(this);
 }