コード例 #1
0
ファイル: RabbitMqTransport.cs プロジェクト: nls75/Rebus
        /// <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;
        }
コード例 #2
0
ファイル: RabbitMqTransport.cs プロジェクト: RichieYang/Rebus
        /// <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;
        }
コード例 #3
0
ファイル: RabbitMqTransport.cs プロジェクト: netojoaop/Rebus
 /// <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;
 }