public HostBusService(IHostBusFactory hostBusFactory, IBusServiceConfigurator serviceConfigurator, string serviceName) { _log = Logger.Get(GetType()); _hostBusFactory = hostBusFactory; _serviceConfigurator = serviceConfigurator; _serviceName = serviceName; }
public HostBusService(IHostBusFactory hostBusFactory, IBusServiceConfigurator serviceConfigurator, string serviceName) { _log = Logger.Get(GetType()); _hostBusFactory = hostBusFactory; _serviceConfigurator = serviceConfigurator; _serviceName = serviceName; }
public BusProvider(IHostBusFactory hostBusFactory, IBusServiceConfigurator busServiceConfigurator) { // ReSharper disable once JoinNullCheckWithUsage // Justification: This formatting looks better if (hostBusFactory == null) { throw new ArgumentNullException(nameof(hostBusFactory)); } if (busServiceConfigurator == null) { throw new ArgumentNullException(nameof(busServiceConfigurator)); } // The 'serviceName' argument is not used in RabbitMq and AzureBus // only uses it when its settings are null. So assume their settings // are not null and therefore our argument can be empty. _busControl = hostBusFactory.CreateBus(busServiceConfigurator, string.Empty); _busControl.Start(); }
public HostBusService(IHostBusFactory hostBusFactory, IBusServiceConfigurator serviceConfigurator, string serviceName) { _hostBusFactory = hostBusFactory; _serviceConfigurator = serviceConfigurator; _serviceName = serviceName; }