using Bootstrap.Admin.HealthChecks; namespace Microsoft.Extensions.DependencyInjection { /// /// 健康检查扩展类 /// public static class HealthChecksBuilderExtensions { /// /// 添加 BootstrapAdmin 健康检查 /// /// /// public static IServiceCollection AddAdminHealthChecks(this IServiceCollection services) { var builder = services.AddHealthChecks(); builder.AddCheck("db"); builder.AddBootstrapAdminHealthChecks(); builder.AddCheck("Gitee"); return services; } } }