Hamza Albreem
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
docs/en/Community-Articles/2022-11-27-gRPC-Health-Checks/POST.md
|
|
|
@ -40,7 +40,7 @@ public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
.AddCheck("SampleHealthCheck", () => HealthCheckResult.Healthy()); |
|
|
|
} |
|
|
|
``` |
|
|
|
* `MapGrpcHealthChecksService` to add a health checks service endpoint. |
|
|
|
* `MapGrpcHealthChecksService` to add a health check service endpoint. |
|
|
|
|
|
|
|
```csharp |
|
|
|
public override void OnApplicationInitialization(ApplicationInitializationContext context) |
|
|
|
@ -70,4 +70,4 @@ Console.WriteLine($"Health Status: {status}"); |
|
|
|
|
|
|
|
## References |
|
|
|
|
|
|
|
- https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-7.0?view=aspnetcore-7.0#grpc-health-checks-in-aspnet-core |
|
|
|
- https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-7.0?view=aspnetcore-7.0#grpc-health-checks-in-aspnet-core |
|
|
|
|