예제 #1
0
 protected AbstractPollableMessageSourceBinder(
     IApplicationContext context,
     string[] headersToEmbed,
     IProvisioningProvider provisioningProvider,
     IListenerContainerCustomizer containerCustomizer,
     IMessageSourceCustomizer sourceCustomizer)
     : base(context, headersToEmbed, provisioningProvider, containerCustomizer, sourceCustomizer)
 {
 }
 protected AbstractPollableMessageSourceBinder(
     IServiceProvider serviceProvider,
     string[] headersToEmbed,
     IProvisioningProvider provisioningProvider,
     IListenerContainerCustomizer containerCustomizer,
     IMessageSourceCustomizer sourceCustomizer)
     : base(serviceProvider, headersToEmbed, provisioningProvider, containerCustomizer, sourceCustomizer)
 {
 }
예제 #3
0
 protected AbstractMessageChannelBinder(
     IApplicationContext context,
     string[] headersToEmbed,
     IProvisioningProvider provisioningProvider,
     IListenerContainerCustomizer containerCustomizer,
     IMessageSourceCustomizer sourceCustomizer)
     : base(context)
 {
     _headersToEmbed             = headersToEmbed ?? (new string[0]);
     _provisioningProvider       = provisioningProvider;
     ListenerContainerCustomizer = containerCustomizer;
     MessageSourceCustomizer     = sourceCustomizer;
 }
 protected AbstractMessageChannelBinder(
     IServiceProvider serviceProvider,
     string[] headersToEmbed,
     IProvisioningProvider provisioningProvider,
     IListenerContainerCustomizer containerCustomizer,
     IMessageSourceCustomizer sourceCustomizer)
     : base(serviceProvider)
 {
     _headersToEmbed             = headersToEmbed ?? (new string[0]);
     _provisioningProvider       = provisioningProvider;
     ListenerContainerCustomizer = containerCustomizer;
     MessageSourceCustomizer     = sourceCustomizer;
     _destinationRegistry        = ServiceProvider.GetService <IDestinationRegistry>();
 }
 protected AbstractMessageChannelBinder(
     IApplicationContext context,
     string[] headersToEmbed,
     IProvisioningProvider provisioningProvider,
     IListenerContainerCustomizer containerCustomizer,
     IMessageSourceCustomizer sourceCustomizer,
     ILogger logger)
     : base(context, logger)
 {
     _headersToEmbed             = headersToEmbed ?? Array.Empty <string>();
     _provisioningProvider       = provisioningProvider;
     ListenerContainerCustomizer = containerCustomizer;
     MessageSourceCustomizer     = sourceCustomizer;
     _logger = logger;
 }
        public RabbitMessageChannelBinder(IApplicationContext context, ILogger <RabbitMessageChannelBinder> logger, SteeltoeConnectionFactory connectionFactory, RabbitOptions rabbitOptions, RabbitBinderOptions binderOptions, RabbitBindingsOptions bindingsOptions, RabbitExchangeQueueProvisioner provisioningProvider, IListenerContainerCustomizer containerCustomizer, IMessageSourceCustomizer sourceCustomizer)
            : base(context, Array.Empty <string>(), provisioningProvider, containerCustomizer, sourceCustomizer, logger)
        {
            if (connectionFactory == null)
            {
                throw new ArgumentNullException(nameof(connectionFactory));
            }

            if (rabbitOptions == null)
            {
                throw new ArgumentNullException(nameof(rabbitOptions));
            }

            _logger                 = logger;
            ConnectionFactory       = connectionFactory;
            RabbitConnectionOptions = rabbitOptions;
            BinderOptions           = binderOptions;
            BindingsOptions         = bindingsOptions;
            ServiceName             = "rabbitBinder";
        }
 public RabbitMessageChannelBinder(IApplicationContext context, ILogger <RabbitMessageChannelBinder> logger, SteeltoeConnectionFactory connectionFactory, RabbitOptions rabbitOptions, RabbitBinderOptions binderOptions, RabbitBindingsOptions bindingsOptions, RabbitExchangeQueueProvisioner provisioningProvider, IListenerContainerCustomizer containerCustomizer)
     : this(context, logger, connectionFactory, rabbitOptions, binderOptions, bindingsOptions, provisioningProvider, containerCustomizer, null)
 {
 }