共用方式為


HealthCheckEndpointRouteBuilderExtensions.MapHealthChecks 方法

定義

多載

MapHealthChecks(IEndpointRouteBuilder, String)

使用指定的範本,將健康情況檢查端點新增至 IEndpointRouteBuilder

MapHealthChecks(IEndpointRouteBuilder, String, HealthCheckOptions)

使用指定的範本和選項,將健康情況檢查端點新增至 IEndpointRouteBuilder

MapHealthChecks(IEndpointRouteBuilder, String)

來源:
HealthCheckEndpointRouteBuilderExtensions.cs

使用指定的範本,將健康情況檢查端點新增至 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)

來源:
HealthCheckEndpointRouteBuilderExtensions.cs

使用指定的範本和選項,將健康情況檢查端點新增至 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,用來設定健康情況檢查。

傳回

健康情況檢查端點的慣例路由。

適用於