HealthCheckEndpointRouteBuilderExtensions.MapHealthChecks 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
MapHealthChecks(IEndpointRouteBuilder, String) |
使用指定模板将运行状况检查终结点添加到 IEndpointRouteBuilder 。 |
MapHealthChecks(IEndpointRouteBuilder, String, HealthCheckOptions) |
使用指定的模板和选项将运行状况检查终结点添加到 IEndpointRouteBuilder 。 |
MapHealthChecks(IEndpointRouteBuilder, String)
使用指定模板将运行状况检查终结点添加到 IEndpointRouteBuilder 。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IEndpointConventionBuilder ^ MapHealthChecks(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ pattern);
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapHealthChecks (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern);
static member MapHealthChecks : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function MapHealthChecks (endpoints As IEndpointRouteBuilder, pattern As String) As IEndpointConventionBuilder
参数
- endpoints
- IEndpointRouteBuilder
要 IEndpointRouteBuilder 向其添加运行状况检查终结点的 。
- pattern
- String
运行状况检查终结点的 URL 模式。
返回
运行状况检查终结点的约定路由。
适用于
MapHealthChecks(IEndpointRouteBuilder, String, HealthCheckOptions)
使用指定的模板和选项将运行状况检查终结点添加到 IEndpointRouteBuilder 。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IEndpointConventionBuilder ^ MapHealthChecks(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ pattern, Microsoft::AspNetCore::Diagnostics::HealthChecks::HealthCheckOptions ^ options);
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapHealthChecks (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Diagnostics.HealthChecks.HealthCheckOptions options);
static member MapHealthChecks : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * Microsoft.AspNetCore.Diagnostics.HealthChecks.HealthCheckOptions -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function MapHealthChecks (endpoints As IEndpointRouteBuilder, pattern As String, options As HealthCheckOptions) As IEndpointConventionBuilder
参数
- endpoints
- IEndpointRouteBuilder
要 IEndpointRouteBuilder 向其添加运行状况检查终结点的 。
- pattern
- String
运行状况检查终结点的 URL 模式。
- options
- HealthCheckOptions
HealthCheckOptions用于配置运行状况检查的 。
返回
运行状况检查终结点的约定路由。