Skip to content

Method AddBelayHealthChecks ​

Namespace: Belay.Extensions
Assembly: Belay.Extensions.dll

AddBelayHealthChecks(IServiceCollection, Action<BelayHealthCheckOptions>?) ​

Adds Belay.NET health checks to the service collection.

csharp
public static IServiceCollection AddBelayHealthChecks(this IServiceCollection services, Action<BelayHealthCheckOptions>? configureHealthChecks = null)

Parameters ​

services IServiceCollection

The service collection.

configureHealthChecks Action<BelayHealthCheckOptions>?

Optional action to configure health check options.

Returns ​

IServiceCollection

The service collection for chaining.

Released under the Apache License 2.0.