public ServiceBusReceiveEndpointConfigurator(IServiceBusHost host, ReceiveEndpointSettings settings, IConsumePipe consumePipe = null)
     : base(consumePipe)
 {
     _host = host;
     _settings = settings;
     _subscribeMessageTopics = true;
 }
 public ServiceBusReceiveEndpointConfigurator(IServiceBusHost host, ReceiveEndpointSettings settings, IConsumePipe consumePipe = null)
     : base(consumePipe)
 {
     _host     = host;
     _settings = settings;
     _subscribeMessageTopics = true;
 }
        public ServiceBusBusBuilder(ServiceBusHost[] hosts, IConsumePipeSpecification consumePipeSpecification, ReceiveEndpointSettings settings)
            : base(consumePipeSpecification, hosts)
        {
            if (hosts == null)
                throw new ArgumentNullException(nameof(hosts));

            _hosts = hosts;

            _busEndpointConfigurator = new ServiceBusReceiveEndpointConfigurator(_hosts[0], settings, ConsumePipe);
        }
        public ServiceBusBusBuilder(ServiceBusHost[] hosts, IConsumePipeFactory consumePipeFactory, ISendPipeFactory sendPipeFactory,
            IPublishPipeFactory publishPipeFactory, ReceiveEndpointSettings settings)
            : base(consumePipeFactory, sendPipeFactory, publishPipeFactory, hosts)
        {
            if (hosts == null)
                throw new ArgumentNullException(nameof(hosts));

            _hosts = hosts;

            _busEndpointConfigurator = new ServiceBusReceiveEndpointConfigurator(_hosts[0], settings, ConsumePipe);
        }
        public ServiceBusBusBuilder(ServiceBusHost[] hosts, IConsumePipeFactory consumePipeFactory, ISendPipeFactory sendPipeFactory,
                                    IPublishPipeFactory publishPipeFactory, ReceiveEndpointSettings settings)
            : base(consumePipeFactory, sendPipeFactory, publishPipeFactory, hosts)
        {
            if (hosts == null)
            {
                throw new ArgumentNullException(nameof(hosts));
            }

            _hosts = hosts;

            _busEndpointConfigurator = new ServiceBusReceiveEndpointConfigurator(_hosts[0], settings, ConsumePipe);
        }
Beispiel #6
0
        public ServiceBusReceiveEndpointConfiguration(IServiceBusHostConfiguration hostConfiguration, ReceiveEndpointSettings settings,
                                                      IServiceBusEndpointConfiguration endpointConfiguration)
            : base(hostConfiguration, settings, endpointConfiguration)
        {
            _hostConfiguration     = hostConfiguration;
            _endpointConfiguration = endpointConfiguration;
            _settings = settings;

            _settings.QueueConfigurator.BasePath = hostConfiguration.BasePath;

            SubscribeMessageTopics = true;

            _inputAddress = new Lazy <Uri>(FormatInputAddress);
        }
        public ServiceBusBusBuilder(IEnumerable<ServiceBusHost> hosts, IConsumePipeSpecification consumePipeSpecification, ReceiveEndpointSettings settings)
            : base(consumePipeSpecification)
        {
            if (hosts == null)
                throw new ArgumentNullException(nameof(hosts));

            _hosts = hosts.ToArray();

            _busConsumePipe = CreateConsumePipe();

            _busEndpointConfigurator = new ServiceBusReceiveEndpointConfigurator(_hosts[0], settings, _busConsumePipe);

            _inputAddress = _busEndpointConfigurator.InputAddress;
        }
Beispiel #8
0
        public ServiceBusReceiveEndpointConfiguration(IServiceBusHostConfiguration hostConfiguration, IServiceBusEndpointConfiguration endpointConfiguration,
                                                      ReceiveEndpointSettings settings)
            : base(hostConfiguration, endpointConfiguration, settings)
        {
            _hostConfiguration     = hostConfiguration;
            _endpointConfiguration = endpointConfiguration;
            _settings = settings;

            _settings.QueueConfigurator.BasePath = hostConfiguration.Host.BasePath;

            HostAddress  = hostConfiguration.Host.Address;
            InputAddress = settings.GetInputAddress(hostConfiguration.HostAddress, settings.Name);

            SubscribeMessageTopics = true;
        }
        public ServiceBusBusFactoryConfigurator()
        {
            _hosts = new List<ServiceBusHost>();
            _transportSpecifications = new List<IBusFactorySpecification>();

            var queueName = this.GetTemporaryQueueName("bus");
            _settings = new ReceiveEndpointSettings(queueName)
            {
                QueueDescription =
                {
                    EnableExpress = true,
                    AutoDeleteOnIdle = TimeSpan.FromMinutes(5)
                }
            };
        }
Beispiel #10
0
        public ServiceBusBusFactoryConfigurator()
        {
            _hosts = new List <ServiceBusHost>();
            _transportSpecifications = new List <IBusFactorySpecification>();

            var queueName = this.GetTemporaryQueueName("bus");

            _settings = new ReceiveEndpointSettings(queueName)
            {
                QueueDescription =
                {
                    EnableExpress    = true,
                    AutoDeleteOnIdle = TimeSpan.FromMinutes(5)
                }
            };
        }
        public ServiceBusBusFactoryConfigurator()
        {
            _hosts = new List <ServiceBusHost>();
            _transportSpecifications  = new List <IBusFactorySpecification>();
            _consumePipeSpecification = new ConsumePipeSpecificationList();

            string queueName = HostMetadataCache.Host.GetTemporaryQueueName();

            _settings = new ReceiveEndpointSettings(queueName)
            {
                QueueDescription =
                {
                    EnableExpress    = true,
                    AutoDeleteOnIdle = TimeSpan.FromMinutes(5)
                }
            };
        }
Beispiel #12
0
        public ServiceBusBusBuilder(IEnumerable <ServiceBusHost> hosts, IConsumePipeSpecification consumePipeSpecification, ReceiveEndpointSettings settings)
            : base(consumePipeSpecification)
        {
            if (hosts == null)
            {
                throw new ArgumentNullException(nameof(hosts));
            }

            _hosts = hosts.ToArray();

            _busConsumePipe = CreateConsumePipe();

            _busEndpointConfigurator = new ServiceBusReceiveEndpointConfigurator(_hosts[0], settings, _busConsumePipe);

            _inputAddress = _busEndpointConfigurator.InputAddress;
        }
Beispiel #13
0
 public ServiceBusReceiveEndpointConfigurator(IServiceBusHost host, ReceiveEndpointSettings settings, IConsumePipe consumePipe = null)
     : base(consumePipe)
 {
     _host     = host;
     _settings = settings;
 }
        public IServiceBusReceiveEndpointConfiguration CreateReceiveEndpointConfiguration(ReceiveEndpointSettings settings,
                                                                                          IServiceBusEndpointConfiguration endpointConfiguration)
        {
            if (_hosts.Count == 0)
            {
                throw new ConfigurationException("At least one host must be configured");
            }

            return(new ServiceBusReceiveEndpointConfiguration(_hosts[0], endpointConfiguration, settings));
        }
 public ServiceBusReceiveEndpointConfigurator(IServiceBusHost host, ReceiveEndpointSettings settings, IConsumePipe consumePipe = null)
     : base(consumePipe)
 {
     _host = host;
     _settings = settings;
 }
Beispiel #16
0
        public ServiceBusBusBuilder(ServiceBusHost[] hosts, IConsumePipeSpecification consumePipeSpecification, ReceiveEndpointSettings settings)
            : base(consumePipeSpecification, hosts)
        {
            if (hosts == null)
            {
                throw new ArgumentNullException(nameof(hosts));
            }

            _hosts = hosts;

            _busEndpointConfigurator = new ServiceBusReceiveEndpointConfigurator(_hosts[0], settings, ConsumePipe);
        }