KestrunHostHealthExtensions.AddHealthEndpoint method (1 of 2)
Registers a GET endpoint (default /health) that aggregates the state of all registered probes.
public static KestrunHost AddHealthEndpoint(this KestrunHost host,
Action<HealthEndpointOptions>? configure = null)
| parameter | description |
|---|---|
| host | The host to configure. |
| configure | Optional action to mutate the default endpoint options. |
Return Value
The KestrunHost instance for fluent chaining.
See Also
- class KestrunHost
- class HealthEndpointOptions
- class KestrunHostHealthExtensions
- namespace Kestrun.Hosting
KestrunHostHealthExtensions.AddHealthEndpoint method (2 of 2)
Registers a GET endpoint (default /health) using a pre-configured HealthEndpointOptions instance.
public static KestrunHost AddHealthEndpoint(this KestrunHost host, HealthEndpointOptions options)
| parameter | description |
|---|---|
| host | The host to configure. |
| options | A fully configured options object. |
Return Value
The KestrunHost instance for fluent chaining.
See Also
- class KestrunHost
- class HealthEndpointOptions
- class KestrunHostHealthExtensions
- namespace Kestrun.Hosting