HealthCheckEndpointRouteBuilderExtensions.MapHealthChecks 方法

定义

重载

MapHealthChecks(IEndpointRouteBuilder, String)

使用指定模板将运行状况检查终结点添加到 IEndpointRouteBuilder

MapHealthChecks(IEndpointRouteBuilder, String, HealthCheckOptions)

使用指定的模板和选项将运行状况检查终结点添加到 IEndpointRouteBuilder

MapHealthChecks(IEndpointRouteBuilder, String)

Source:
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)

Source:
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用于配置运行状况检查的 。

返回

运行状况检查终结点的约定路由。

适用于