コード例 #1
0
        public BinderAwareChannelResolver(
            IOptionsMonitor <BindingServiceOptions> optionsMonitor,
            IDestinationRegistry destinationRegistry,
            IBindingService bindingService,
            SubscribableChannelBindingTargetFactory bindingTargetFactory,
            DynamicDestinationsBindable dynamicDestinationsBindable,
            INewDestinationBindingCallback callback)
            : base(destinationRegistry)
        {
            if (bindingService == null)
            {
                throw new ArgumentNullException(nameof(bindingService));
            }

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

            _dynamicDestinationsBindable = dynamicDestinationsBindable;
            _optionsMonitor       = optionsMonitor;
            _bindingService       = bindingService;
            _bindingTargetFactory = bindingTargetFactory;
            _newBindingCallback   = callback;
        }
コード例 #2
0
 public BinderAwareChannelResolver(
     IOptionsMonitor <BindingServiceOptions> optionsMonitor,
     IDestinationRegistry destinationRegistry,
     IBindingService bindingService,
     SubscribableChannelBindingTargetFactory bindingTargetFactory,
     DynamicDestinationsBindable dynamicDestinationsBindable)
     : this(optionsMonitor, destinationRegistry, bindingService, bindingTargetFactory, dynamicDestinationsBindable, null)
 {
 }
コード例 #3
0
        public DefaultMessageChannelDestinationResolver(IDestinationRegistry registry)
        {
            if (registry == null)
            {
                throw new ArgumentNullException(nameof(registry));
            }

            Registry = registry;
        }
コード例 #4
0
 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>();
 }
コード例 #5
0
 public DefaultMessageChannelResolver(IDestinationRegistry destinationRegistry, IHeaderChannelRegistry registry = null)
 {
     _destinationRegistry = destinationRegistry ?? throw new ArgumentNullException(nameof(destinationRegistry));
     _registry            = registry;
 }