Exemplo n.º 1
0
 public QueueOperation(ILogger logger, ConnectionPool connectionPool, RabbitMQOptions rabbitMQOptions, IQueueOperationSubscriptionsManager subsManager, PublishQueueExecutor publishQueueExecutor)
 {
     _logger      = logger;
     _subsManager = subsManager ?? new InMemorySubscriptionsManager();
     _subsManager.OnEventRemoved += SubsManager_OnEventRemoved;
     _publishQueueExecutor        = publishQueueExecutor;
     _connectionPool              = connectionPool;
     _rabbitMQOptions             = rabbitMQOptions;
 }
Exemplo n.º 2
0
 public QueueOperationCKafka(IQueueOperationSubscriptionsManager subsManager, Func <string, IKafkaPersisterConnection> connectionAccessor)
 {
     _subsManager                = subsManager ?? new InMemorySubscriptionsManager();
     _connectionAccessor         = connectionAccessor;
     _producerConnection         = _connectionAccessor("KafkaProducer");
     _consumerConnection         = _connectionAccessor("KafkaConsumer");
     _logger                     = LoggerFactory.CreateLogger();
     subsManager.OnEventRemoved += SubsManager_OnEventRemoved;
 }
Exemplo n.º 3
0
 public QueueOperationRdKafka(IQueueOperationSubscriptionsManager subsManager)
 {
     _subsManager = subsManager ?? new InMemorySubscriptionsManager();
     _logger      = LoggerFactory.CreateLogger();
 }