/// <summary> /// Constructs the transport with a connection to the RabbitMQ instance specified by the given connection string /// </summary> public RabbitMqTransport(string connectionString, string inputQueueAddress, IRebusLoggerFactory rebusLoggerFactory) { _connectionManager = new ConnectionManager(connectionString, inputQueueAddress, rebusLoggerFactory); _log = rebusLoggerFactory.GetCurrentClassLogger(); Address = inputQueueAddress; }
/// <summary> /// Constructs the transport with a connection to the RabbitMQ instance specified by the given connection string /// </summary> public RabbitMqTransport(string connectionString, string inputQueueAddress, IRebusLoggerFactory rebusLoggerFactory, ushort maxMessagesToPrefetch = 50) { if (connectionString == null) throw new ArgumentNullException(nameof(connectionString)); if (rebusLoggerFactory == null) throw new ArgumentNullException(nameof(rebusLoggerFactory)); _connectionManager = new ConnectionManager(connectionString, inputQueueAddress, rebusLoggerFactory); _maxMessagesToPrefetch = maxMessagesToPrefetch; _log = rebusLoggerFactory.GetCurrentClassLogger(); Address = inputQueueAddress; }
/// <summary> /// Constructs the transport with a connection to the RabbitMQ instance specified by the given connection string /// </summary> public RabbitMqTransport(string connectionString, string inputQueueAddress) { _connectionManager = new ConnectionManager(connectionString, inputQueueAddress); Address = inputQueueAddress; }