public EndpointHealthNotifier(IHealthMonitorClient client, ITimeCoordinator timeCoordinator, EndpointDefinition definition, IHealthChecker healthChecker)
 {
     _client = client;
     _timeCoordinator = timeCoordinator;
     _definition = definition;
     _healthChecker = healthChecker;
     _cancelationTokenSource = new CancellationTokenSource();
     _healthCheckInterval = new CachedValue<TimeSpan>(HealthCheckIntervalCacheDuration, GetHealthCheckIntervalAsync);
     _thread = new Thread(HealthLoop) { IsBackground = true, Name = "Health Check loop" };
     _thread.Start();
 }
Exemple #2
0
 public EndpointHealthNotifier(IHealthMonitorClient client, ITimeCoordinator timeCoordinator, EndpointDefinition definition, IHealthChecker healthChecker)
 {
     _client                 = client;
     _timeCoordinator        = timeCoordinator;
     _definition             = definition;
     _healthChecker          = healthChecker;
     _cancelationTokenSource = new CancellationTokenSource();
     _healthCheckInterval    = new CachedValue <TimeSpan>(HealthCheckIntervalCacheDuration, GetHealthCheckIntervalAsync);
     _thread                 = new Thread(HealthLoop)
     {
         IsBackground = true, Name = "Health Check loop"
     };
     _thread.Start();
 }
 public TestablePushClient(IHealthMonitorClient client, ITimeCoordinator timeCoordinator) : base(client, timeCoordinator)
 {
 }
Exemple #4
0
 protected HealthMonitorPushClient(IHealthMonitorClient client, ITimeCoordinator timeCoordinator)
 {
     _client          = client;
     _timeCoordinator = timeCoordinator;
 }
 public TestablePushClient(IHealthMonitorClient client, ITimeCoordinator timeCoordinator) : base(client, timeCoordinator)
 {
 }
 protected HealthMonitorPushClient(IHealthMonitorClient client, ITimeCoordinator timeCoordinator)
 {
     _client = client;
     _timeCoordinator = timeCoordinator;
 }