public static IConnection OpenRabbitMqConnection(RabbitMqServerConfiguration rabbitMqServerConfiguration) { var factory = new ConnectionFactory { HostName = rabbitMqServerConfiguration.HostName }; return(factory.CreateConnection()); }
public RemoteMessageBus(RabbitMqServerConfiguration rabbitMqServerConfiguration) { _connection = OpenRabbitMqConnection(rabbitMqServerConfiguration); _channel = _connection.CreateModel(); }