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,用來設定健康情況檢查。
傳回
健康情況檢查端點的慣例路由。