Skip to content

AspNetCore

Arnel Robles edited this page Sep 29, 2026 · 1 revision

Health checks (Carom.AspNetCore)

using Carom.AspNetCore;

services.AddHealthChecks()
    .AddCaromCircuitBreaker("payment-api");

The check is named carom_payment-api unless you pass name. It reads the circuit with Cushion.GetState, which creates nothing.

Circuit Result
Closed Healthy
HalfOpen Degraded
Open failureStatus, Unhealthy by default
Never used Healthy

The service name must match the key given to Cushion.ForService (or AddCircuitBreaker in a pipeline).

CaromHealthCheck(name, Func<Task<bool>>) wraps any async check: true is Healthy, false or an exception is Unhealthy.

Clone this wiki locally