.net core2.2 HealthChecks记录

abp core2.2版时使用 healthChecks
使用:
安装nuget包:

Microsoft.AspNetCore.Diagnostics.HealthChecks
startup.cs 中的 ConfigureServices 加入代码:
services.AddHealthChecks();

Configure 加入代码:

app.UseHealthChecks("/health");

最粗暴的healthChecks就完成了。

猜你喜欢

转载自www.cnblogs.com/Frank-Jan/p/12898789.html