public RabbitMqSession(string host, int port)
 {
     _messageConverter  = new RabbitMqMessageConverter(() => _channel.CreateBasicProperties());
     _connectionFactory = () => new ConnectionFactory {
         HostName = host, Port = port
     };
     _connection = _connectionFactory().CreateConnection();
     _channel    = _connection.CreateModel();
 }
Beispiel #2
0
 public RabbitMqQueue(IModel channel, SharedQueue <BasicDeliverEventArgs> queue, RabbitMqMessageConverter messageConverter)
 {
     _queue            = queue;
     _channel          = channel;
     _messageConverter = messageConverter;
 }