public ReadinessHealthContributor(ApplicationAvailability availability)
     : base(new Dictionary <IAvailabilityState, HealthStatus> {
     { ReadinessState.AcceptingTraffic, HealthStatus.UP }, { ReadinessState.RefusingTraffic, HealthStatus.OUT_OF_SERVICE }
 })
 {
     _availability = availability;
 }
Esempio n. 2
0
 public LivenessHealthContributor(ApplicationAvailability availability)
     : base(new Dictionary <IAvailabilityState, HealthStatus> {
     { LivenessState.Correct, HealthStatus.UP }, { LivenessState.Broken, HealthStatus.DOWN }
 })
 {
     _availability = availability;
 }