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