小编Zac*_*ins的帖子

Usehealthchecks 与 Maphealthchecks

我到处查看,但我假设这是一种较旧的做事方式,但是将运行状况检查端点添加到中间件是否有更深层的区别?

In Startup.Configure()..

app.UseEndpoints(endpoints =>
{
    endpoints.MapHealthChecks("/health");
});
Run Code Online (Sandbox Code Playgroud)
app.UseHealthChecks("/health")
Run Code Online (Sandbox Code Playgroud)

c# asp.net-core health-check

9
推荐指数
1
解决办法
6046
查看次数

标签 统计

asp.net-core ×1

c# ×1

health-check ×1