Author Top Nguyen
- Health check for the service a live or not.
- Support SQL Server healthy check between Service <-> SQL Server.
- Extend
Microsoft.AspNetCore.Diagnostics.HealthChecks
and allow you to add moreBuilder
after this service finish config.- Please see the setup callback in
ElectHealthCheckOptions
- Please see the setup callback in
- Package Manager
PM> Install-Package Elect.HealthCheck
- .NET CLI
dotnet add package Elect.HealthCheck
-
Add Service
- You can config endpoints by
ElectHealthCheckOptions
, default is/health
. - Support Check Healthy between Service <-> SQL Server. Just need to config the DB Connection in
DbConnectionString
Property of theElectHealthCheckOptions
.
services.AddElectHealthCheck();
- You can config endpoints by
-
Use Service
app.UseElectHealthCheck();
Elect.HealthCheck is licensed under the MIT License.