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