Пример #1
0
 public RabbitMqConnector(RabbitMqConnectionProvider connectionProvider, ILogger logger)
 {
     _connectionProvider = connectionProvider;
     Logger    = logger;
     Scheduler = new ConcurrentExclusiveSchedulerPair().ExclusiveScheduler;
 }
 public RabbitMqOnlineConnectorFactory(RabbitMqOptions options, ILoggerFactory loggerFactory, ITopologyProvider topologyProvider)
 {
     _connectionProvider = new RabbitMqConnectionProvider(options, loggerFactory.CreateLogger <RabbitMqConnectionProvider>());
     LoggerFactory       = loggerFactory;
     _topologyProvider   = topologyProvider;
 }