RabbitMqClient - this class is the engine that lets you send messages to RabbitMq
コード例 #1
0
 public RabbitMQSink(RabbitMQConfiguration configuration,
                     ITextFormatter formatter,
                     IFormatProvider formatProvider) : base(configuration.BatchPostingLimit, configuration.Period)
 {
     _formatter      = formatter ?? new RawFormatter();
     _formatProvider = formatProvider;
     _client         = new RabbitMQClient(configuration);
 }
コード例 #2
0
 public RabbitMQSink(RabbitMQConfiguration configuration,
     ITextFormatter formatter,
     IFormatProvider formatProvider)
     : base(configuration.BatchPostingLimit, configuration.Period)
 {
     _formatter = formatter ?? new RawFormatter();
     _formatProvider = formatProvider;
     _client = new RabbitMQClient(configuration);
 }
コード例 #3
0
 public RabbitMQSink(
     RabbitMQConfiguration configuration,
     ITextFormatter formatter,
     IFormatProvider formatProvider
     )
 {
     // prepare client
     _client         = new RabbitMQClient(configuration);
     _formatProvider = formatProvider;
     _formatter      = formatter ?? new RawFormatter();
 }
コード例 #4
0
        public RabbitMQSink(
            RabbitMQConfiguration configuration,
            ITextFormatter formatter,
            IFormatProvider formatProvider
       )
        {

            // prepare client
            _client = new RabbitMQClient(configuration);
            _formatProvider = formatProvider;
            _formatter = formatter ?? new RawFormatter();
        }
コード例 #5
0
 public RabbitMQSink(RabbitMQClientConfiguration configuration,
                     RabbitMQSinkConfiguration rabbitMQSinkConfiguration) : base(rabbitMQSinkConfiguration.BatchPostingLimit, rabbitMQSinkConfiguration.Period)
 {
     _formatter = rabbitMQSinkConfiguration.TextFormatter;
     _client    = new RabbitMQClient(configuration);
 }