1 Star 0 Fork 0

Ax0ne/practical-aspnetcore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Health Check (6)

  • Health Check - Check URL

    Show the simplest way to use health check functionality using app.UseHealthChecks.

  • Health Check - Check URL - 2

    Customize the message returned by app.UseHealthChecks.

  • Health Check - Check URL - 3

    Start implementing IHealthCheck to provide status information for the health check service. In this example, it will always return failure because we just throw an exception in the implementation. You will see how the health check handles an unhandled exception.

  • Health Check - Check URL - 4

    Implement a IHealthCheck that check the status of a url. This is the first version of the check so it is primitive but it is also easier to understand. We will go to a more sophisticated multi check in the next examples.

  • Health Check - Check URL - 5

    Similar to the previous example except that now there are two checks, one fails and one successful.

  • Health Check - Check URL - 6

    Similar to the previous example except that one of the check reports "Degraded" status by using context.Registration.FailureStatus = HealthStatus.Degraded;.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Ax0ne/practical-aspnetcore.git
git@gitee.com:Ax0ne/practical-aspnetcore.git
Ax0ne
practical-aspnetcore
practical-aspnetcore
net5.0

搜索帮助