/// <summary> /// Unregisters the given <seealso cref="HealthCheck" />. /// </summary> /// <param name="healthCheck">a <seealso cref="HealthCheck" /></param> public void Unregister(HealthCheck healthCheck) { Unregister(healthCheck.Name); }
/// <summary> /// Registers an application <seealso cref="HealthCheck" />. /// </summary> /// <param name="healthCheck">the <seealso cref="HealthCheck" /> instance</param> public void Register(HealthCheck healthCheck) { healthChecks.PutIfAbsent(healthCheck.Name, healthCheck); }