Method
AddDefaultHealthChecks
(this IHostApplicationBuilder builder)
Source from the content-addressed store, hash-verified
| 79 | } |
| 80 | |
| 81 | public static IHostApplicationBuilder AddDefaultHealthChecks(this IHostApplicationBuilder builder) |
| 82 | { |
| 83 | builder.Services.AddHealthChecks() |
| 84 | // Add a default liveness check to ensure app is responsive |
| 85 | .AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]); |
| 86 | |
| 87 | return builder; |
| 88 | } |
| 89 | |
| 90 | public static WebApplication MapDefaultEndpoints(this WebApplication app) |
| 91 | { |
Tested by
no test coverage detected