METHOD
IServiceCollection.AddHealthChecks
Register the health-check services and get a builder for check registrations.
Formal Syntax & Structure
csharp syntaxcsharp
services.AddHealthChecks()Working Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.services.AddHealthChecks()