Skip to content

Commit 803fdc8

Browse files
Merge pull request #232 from TransactionProcessing/task/#231_stdhealthcheck
Add Std health check
2 parents f12fa0d + 9815be6 commit 803fdc8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

FileProcessor/Startup.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerF
192192
Predicate = _ => true,
193193
ResponseWriter = Shared.HealthChecks.HealthCheckMiddleware.WriteResponse
194194
});
195+
endpoints.MapHealthChecks("healthui", new HealthCheckOptions()
196+
{
197+
Predicate = _ => true,
198+
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
199+
});
195200
});
196201

197202
app.UseSwagger();

0 commit comments

Comments
 (0)