You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 10, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/6. Production Readiness and Deployment.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
services.AddHealthChecks()
8
8
.AddDbContextCheck<ApplicationDbContext>();
9
9
```
10
-
1.Add the health checks middleware by modifying `Configure` to call `app.UseHealthChecks("/health");`. This will configure the health checks on the `/health` end point.
10
+
1.Wire up health checks by modifying the `UseEndpoints` to add a call to `endpoints.MapHealthChecks("/health");`. This will configure the health checks on the `/health` end point.
11
11
1. Test the end point by navigating to `/health`, it should return the text `Healthy`.
12
12
13
13
## Adding EF Healthchecks to the FrontEnd
@@ -17,7 +17,7 @@
17
17
services.AddHealthChecks()
18
18
.AddDbContextCheck<IdentityDbContext>();
19
19
```
20
-
1.Add the health checks middleware by modifying `Configure` to call `app.UseHealthChecks("/health");`. This will configure the health checks on the `/health` end point.
20
+
1.Wire up health checks by modifying the `UseEndpoints` to add a call to `endpoints.MapHealthChecks("/health");`. This will configure the health checks on the `/health` end point.
21
21
1. Test the end point by navigating to `/health`, it should return the text `Healthy`.
22
22
23
23
## Adding a custom health check to test for BackEnd availability
0 commit comments