Ejemplo n.º 1
0
 public TitanFlashPublisherRabbitMq(IRabbitMQPersistentConnection persistentConnection,
                                    ILoggerFactory loggerFactory,
                                    IServiceProvider serviceProvider,
                                    ITitanFlashEndPointFactory titanFlashEndPointFactory)
     : base(loggerFactory.CreateLogger <TitanFlashPublisherRabbitMq>(), serviceProvider, persistentConnection, titanFlashEndPointFactory)
 {
 }
Ejemplo n.º 2
0
 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));
 }
Ejemplo n.º 3
0
        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));
        }