public MonitorDataExchange(IHealthMonitorRegistry registry, IHealthMonitorExchangeClient exchangeClient, IMonitorableEndpointRegistry monitorableEndpointRegistry, DataExchangeConfig config)
 {
     _config = config;
     _registry = registry;
     _exchangeClient = exchangeClient;
     _monitorableEndpointRegistry = monitorableEndpointRegistry;
     _outgoingQueue = new OutgoingQueue<EndpointHealthUpdate>(_config.OutgoingQueueMaxCapacity);
     _exchangeThread = new Thread(StartExchange) { Name = "Exchange" };
     _exchangeThread.Start();
 }
Ejemplo n.º 2
0
 public MonitorDataExchange(IHealthMonitorRegistry registry, IHealthMonitorExchangeClient exchangeClient, IMonitorableEndpointRegistry monitorableEndpointRegistry, DataExchangeConfig config)
 {
     _config         = config;
     _registry       = registry;
     _exchangeClient = exchangeClient;
     _monitorableEndpointRegistry = monitorableEndpointRegistry;
     _outgoingQueue  = new OutgoingQueue <EndpointHealthUpdate>(_config.OutgoingQueueMaxCapacity);
     _exchangeThread = new Thread(StartExchange)
     {
         Name = "Exchange"
     };
     _exchangeThread.Start();
 }