KestrunHost.AddHealthEndpoint method (1 of 2)

Registers a GET endpoint (default /health) that aggregates the state of all registered probes.

public KestrunHost AddHealthEndpoint(Action<HealthEndpointOptions>? configure = null)
parameter description
configure Optional action to mutate the default endpoint options.

Return Value

The KestrunHost instance for fluent chaining.

See Also


KestrunHost.AddHealthEndpoint method (2 of 2)

Registers a GET endpoint (default /health) using a pre-configured HealthEndpointOptions instance.

public KestrunHost AddHealthEndpoint(HealthEndpointOptions options)
parameter description
options A fully configured options object.

Return Value

The KestrunHost instance for fluent chaining.

See Also