Beispiel #1
0
        public IBusControl CreateBus(IBusServiceConfigurator busServiceConfigurator, string serviceName)
        {
            return(RabbitMqBusFactory.Create(configurator =>
            {
                configurator.Host(_hostSettings);

                LogContext.Info?.Log("Configuring Host: {Host}", _hostSettings.ToDescription());

                var serviceConfigurator = new RabbitMqServiceConfigurator(configurator);

                busServiceConfigurator.Configure(serviceConfigurator);
            }));
        }
Beispiel #2
0
        public IBusControl CreateBus(IBusServiceConfigurator busServiceConfigurator, string serviceName)
        {
            return(RabbitMqBusFactory.Create(configurator =>
            {
                var host = configurator.Host(_hostSettings);

                if (_log.IsInfoEnabled)
                {
                    _log.Info($"Configuring Host: {_hostSettings.ToDebugString()}");
                }

                var serviceConfigurator = new RabbitMqServiceConfigurator(configurator, host);

                busServiceConfigurator.Configure(serviceConfigurator);
            }));
        }