public RabbitMQListeningAgent(Uri address, ITransportLogger logger, IModel channel, IEnvelopeMapper mapper, RabbitMqAgent agent)
 {
     _logger  = logger;
     _channel = channel;
     _mapper  = mapper;
     Address  = address;
     _queue   = agent.QueueName;
 }
 public RabbitMqListeningAgent(Uri address, ITransportLogger logger, IEnvelopeMapper mapper,
                               RabbitMqAgent agent)
 {
     _logger = logger;
     _mapper = mapper;
     _agent  = agent;
     Address = address;
     _queue  = agent.QueueName;
 }
Exemple #3
0
        public RabbitMqSender(ITransportLogger logger, RabbitMqAgent agent,
                              CancellationToken cancellation)
        {
            _mapper       = agent.EnvelopeMapping;
            _logger       = logger;
            _agent        = agent;
            _cancellation = cancellation;
            Destination   = agent.Uri;

            _address = agent.PublicationAddress();
        }