Exemple #1
0
 public ConsecutiveHealthMonitor(IClock clock, IWatchdogStatusGetter watchdogStatusGetter, IOptions <WatchdogHealthzOptions> options)
 {
     this.clock = clock;
     this.watchdogStatusGetter = watchdogStatusGetter;
     this.firstHealthyProbe    = new Dictionary <PodIdentifier, DateTimeOffset>();
     this.minTimeHealthy       = TimeSpan.FromSeconds(options.Value.MinReadySeconds.GetValueOrDefault());
 }
Exemple #2
0
 public GetWatchdogService(IWatchdogStatusGetter watchdogStatusGetter, IOptions <PodIdentifierOptions> podIdentifier)
 {
     this.watchdogStatusGetter = watchdogStatusGetter;
     this.pod = podIdentifier;
 }