abp core2.2版时使用 healthChecks
使用:
安装nuget包:
Microsoft.AspNetCore.Diagnostics.HealthChecks
startup.cs 中的 ConfigureServices 加入代码:
services.AddHealthChecks();
Configure 加入代码:
app.UseHealthChecks("/health");
最粗暴的healthChecks就完成了。
abp core2.2版时使用 healthChecks
使用:
安装nuget包:
Microsoft.AspNetCore.Diagnostics.HealthChecks
startup.cs 中的 ConfigureServices 加入代码:
services.AddHealthChecks();
Configure 加入代码:
app.UseHealthChecks("/health");
最粗暴的healthChecks就完成了。