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