public TitanFlashPublisherRabbitMq(IRabbitMQPersistentConnection persistentConnection, ILoggerFactory loggerFactory, IServiceProvider serviceProvider, ITitanFlashEndPointFactory titanFlashEndPointFactory) : base(loggerFactory.CreateLogger <TitanFlashPublisherRabbitMq>(), serviceProvider, persistentConnection, titanFlashEndPointFactory) { }
protected TitanFlashHelperRabbitMq(ILogger logger, IServiceProvider serviceProvider, IRabbitMQPersistentConnection persistentConnection, ITitanFlashEndPointFactory titanFlashEndPointFactory) { _logger = logger; _serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider)); _persistentConnection = persistentConnection ?? throw new ArgumentNullException(nameof(persistentConnection)); _titanFlashEndPointFactory = titanFlashEndPointFactory ?? throw new ArgumentNullException(nameof(titanFlashEndPointFactory)); }
public TitanFlashServiceBusRabbitMq(ITitanFlashPublisher titanFlashPublisher, ITitanFlashConsumer titanFlashConsumer, ITitanFlashEndPointFactory titanFlashEndPointFactory, ILoggerFactory loggerFactory) { if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } _logger = loggerFactory.CreateLogger <TitanFlashServiceBusRabbitMq>(); _titanFlashConsumer = titanFlashConsumer ?? throw new ArgumentNullException(nameof(titanFlashConsumer)); _titanFlashPublisher = titanFlashPublisher ?? throw new ArgumentNullException(nameof(titanFlashPublisher)); _titanFlashEndPointFactory = titanFlashEndPointFactory ?? throw new ArgumentNullException(nameof(titanFlashEndPointFactory)); }