示例#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)
 {
 }
 public BinderAwareChannelResolver(
     IApplicationContext context,
     IOptionsMonitor <BindingServiceOptions> optionsMonitor,
     IBindingService bindingService,
     SubscribableChannelBindingTargetFactory bindingTargetFactory,
     DynamicDestinationsBindable dynamicDestinationsBindable)
     : this(context, optionsMonitor, bindingService, bindingTargetFactory, dynamicDestinationsBindable, null)
 {
 }