public TitanFlashPersistentConnectionRabbitMq(IHostSetting hostSetting, ILoggerFactory loggerFactory) { _titanFlashMonitor = TitanFlashMonitor.Create(_connectionFactory, loggerFactory); _hostSetting = hostSetting ?? throw new ArgumentNullException(nameof(hostSetting)); _logger = loggerFactory.CreateLogger(nameof(TitanFlashPersistentConnectionRabbitMq)) ?? throw new ArgumentException(nameof(loggerFactory)); _connectionFactory = CreateConnection(); }
public void ReceiveEndPoint(IHostSetting hostSetting, string queueName, Action <IKingsCrossEndPointConfigurator> endPointConfig) { if (endPointConfig == null) { throw new ArgumentNullException(nameof(endPointConfig)); } endPointConfig?.Invoke(_kingsCrossEndPointConfigurator); _kingsCrossEndPointConfigurators.Add(_kingsCrossEndPointConfigurator); }