public IBusControl CreateBus()
        {
            var busReceiveEndpointConfiguration = _configuration.CreateReceiveEndpointConfiguration(_settings, _busEndpointConfiguration);

            var builder = new ConfigurationBusBuilder(_configuration, busReceiveEndpointConfiguration, BusObservable);

            ApplySpecifications(builder);

            return(builder.Build());
        }
Ejemplo n.º 2
0
        public IBusControl CreateBus()
        {
            var queueName = _busConfiguration.Topology.Consume.CreateTemporaryQueueName("bus");

            var busReceiveEndpointConfiguration = _hostConfiguration.CreateReceiveEndpointConfiguration(queueName, _busConfiguration.BusEndpointConfiguration);

            var builder = new ConfigurationBusBuilder(_busConfiguration, busReceiveEndpointConfiguration);

            return(builder.Build());
        }
Ejemplo n.º 3
0
        public IBusControl CreateBus()
        {
            var busQueueName = _configuration.Topology.Consume.CreateTemporaryQueueName("bus");

            var busReceiveEndpointConfiguration = _configuration.CreateReceiveEndpointConfiguration(busQueueName, _busEndpointConfiguration);

            var builder = new ConfigurationBusBuilder(_configuration, busReceiveEndpointConfiguration, BusObservable);

            ApplySpecifications(builder);

            return(builder.Build());
        }
Ejemplo n.º 4
0
        public IBusControl CreateBus()
        {
            void ConfigureBusEndpoint(IHttpReceiveEndpointConfigurator configurator)
            {
            }

            var busReceiveEndpointConfiguration = _busConfiguration.HostConfiguration
                                                  .CreateReceiveEndpointConfiguration("bus", _busConfiguration.BusEndpointConfiguration, ConfigureBusEndpoint);

            var builder = new ConfigurationBusBuilder(_busConfiguration, busReceiveEndpointConfiguration);

            return(builder.Build());
        }
Ejemplo n.º 5
0
        public IBusControl CreateBus()
        {
            void ConfigureBusEndpoint(IRabbitMqReceiveEndpointConfigurator configurator)
            {
                configurator.BindMessageExchanges = false;
            }

            var busReceiveEndpointConfiguration = _busConfiguration.HostConfiguration
                                                  .CreateReceiveEndpointConfiguration(_settings, _busConfiguration.BusEndpointConfiguration, ConfigureBusEndpoint);

            var builder = new ConfigurationBusBuilder(_busConfiguration, busReceiveEndpointConfiguration);

            return(builder.Build());
        }
        public IBusControl CreateBus()
        {
            void ConfigureBusEndpoint(IServiceBusReceiveEndpointConfigurator configurator)
            {
                configurator.SubscribeMessageTopics = false;
            }

            var busReceiveEndpointConfiguration = _busConfiguration.HostConfiguration
                                                  .CreateReceiveEndpointConfiguration(_settings, _busConfiguration.BusEndpointConfiguration, ConfigureBusEndpoint);

            var builder = new ConfigurationBusBuilder(_busConfiguration, busReceiveEndpointConfiguration);

            return(builder.Build());
        }
        public IBusControl CreateBus()
        {
            void ConfigureBusEndpoint(IActiveMqReceiveEndpointConfigurator configurator)
            {
                configurator.ConfigureConsumeTopology = false;
            }

            var busReceiveEndpointConfiguration = _busConfiguration.HostConfiguration
                                                  .CreateReceiveEndpointConfiguration(_settings, _busConfiguration.BusEndpointConfiguration, ConfigureBusEndpoint);

            var builder = new ConfigurationBusBuilder(_busConfiguration, busReceiveEndpointConfiguration);

            return(builder.Build());
        }
Ejemplo n.º 8
0
        public IBusControl CreateBus()
        {
            void ConfigureBusEndpoint(IActiveMqReceiveEndpointConfigurator configurator)
            {
                configurator.BindMessageTopics = false;
            }

            var busReceiveEndpointConfiguration = _busConfiguration.HostConfiguration
                                                  .CreateReceiveEndpointConfiguration(_settings, _busConfiguration.BusEndpointConfiguration, ConfigureBusEndpoint);

            var builder = new ConfigurationBusBuilder(_busConfiguration, busReceiveEndpointConfiguration);

            ApplySpecifications(builder);

            return(builder.Build());
        }
        public IBusControl CreateBus()
        {
            void ConfigureBusEndpoint(IServiceBusReceiveEndpointConfigurator configurator)
            {
                configurator.ConfigureConsumeTopology = false;
            }

            if (Activity.DefaultIdFormat != ActivityIdFormat.Hierarchical)
            {
                Activity.DefaultIdFormat      = ActivityIdFormat.Hierarchical;
                Activity.ForceDefaultIdFormat = true;
            }

            var busReceiveEndpointConfiguration = _busConfiguration.HostConfiguration
                                                  .CreateReceiveEndpointConfiguration(_settings, _busConfiguration.BusEndpointConfiguration, ConfigureBusEndpoint);

            var builder = new ConfigurationBusBuilder(_busConfiguration, busReceiveEndpointConfiguration);

            return(builder.Build());
        }
        public IBusControl CreateBus()
        {
            void ConfigureBusEndpoint(IServiceBusReceiveEndpointConfigurator configurator)
            {
                configurator.ConfigureConsumeTopology = false;
            }

            if (Activity.DefaultIdFormat != ActivityIdFormat.Hierarchical)
            {
                LogContext.Warning?.Log("Azure ServiceBus requires the hierarchical activity id format, MassTransit will change it globally");

                Activity.DefaultIdFormat      = ActivityIdFormat.Hierarchical;
                Activity.ForceDefaultIdFormat = true;
            }

            var busReceiveEndpointConfiguration = _busConfiguration.HostConfiguration
                                                  .CreateReceiveEndpointConfiguration(_settings, _busConfiguration.BusEndpointConfiguration, ConfigureBusEndpoint);

            var builder = new ConfigurationBusBuilder(_busConfiguration, busReceiveEndpointConfiguration);

            return(builder.Build());
        }