HealthCheckApplicationBuilderExtensions.UseHealthChecks 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseHealthChecks(IApplicationBuilder, PathString) |
新增提供健康情況檢查狀態的中介軟體。 |
UseHealthChecks(IApplicationBuilder, PathString, HealthCheckOptions) |
新增提供健康情況檢查狀態的中介軟體。 |
UseHealthChecks(IApplicationBuilder, PathString, Int32) |
新增提供健康情況檢查狀態的中介軟體。 |
UseHealthChecks(IApplicationBuilder, PathString, String) |
新增提供健康情況檢查狀態的中介軟體。 |
UseHealthChecks(IApplicationBuilder, PathString, Int32, HealthCheckOptions) |
新增提供健康情況檢查狀態的中介軟體。 |
UseHealthChecks(IApplicationBuilder, PathString, String, HealthCheckOptions) |
新增提供健康情況檢查狀態的中介軟體。 |
UseHealthChecks(IApplicationBuilder, PathString)
新增提供健康情況檢查狀態的中介軟體。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseHealthChecks(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Http::PathString path);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHealthChecks (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path);
static member UseHealthChecks : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Http.PathString -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseHealthChecks (app As IApplicationBuilder, path As PathString) As IApplicationBuilder
參數
- path
- PathString
要提供健康狀態檢查狀態的路徑。
傳回
作業完成後的 app
參考。
備註
如果 path
設定為 null
或空字串,健康情況檢查中介軟體將會忽略 URL 路徑並處理所有要求。 如果 path
設定為非空白值,健康情況檢查中介軟體會以符合不區分大小寫之所提供值的 path
URL 來處理要求,允許額外的尾端斜線 ('/') 字元。
健康情況檢查中介軟體會使用 來自 IOptions<TOptions> 的預設設定。
適用於
UseHealthChecks(IApplicationBuilder, PathString, HealthCheckOptions)
新增提供健康情況檢查狀態的中介軟體。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseHealthChecks(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Http::PathString path, Microsoft::AspNetCore::Diagnostics::HealthChecks::HealthCheckOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHealthChecks (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path, Microsoft.AspNetCore.Diagnostics.HealthChecks.HealthCheckOptions options);
static member UseHealthChecks : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Http.PathString * Microsoft.AspNetCore.Diagnostics.HealthChecks.HealthCheckOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseHealthChecks (app As IApplicationBuilder, path As PathString, options As HealthCheckOptions) As IApplicationBuilder
參數
- path
- PathString
要提供健康狀態檢查狀態的路徑。
- options
- HealthCheckOptions
HealthCheckOptions,用來設定中介軟體。
傳回
作業完成後的 app
參考。
備註
如果 path
設定為 null
或空字串,健康情況檢查中介軟體將會忽略 URL 路徑並處理所有要求。 如果 path
設定為非空白值,健康情況檢查中介軟體會以符合不區分大小寫之所提供值的 path
URL 來處理要求,允許額外的尾端斜線 ('/') 字元。
適用於
UseHealthChecks(IApplicationBuilder, PathString, Int32)
新增提供健康情況檢查狀態的中介軟體。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseHealthChecks(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Http::PathString path, int port);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHealthChecks (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path, int port);
static member UseHealthChecks : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Http.PathString * int -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseHealthChecks (app As IApplicationBuilder, path As PathString, port As Integer) As IApplicationBuilder
參數
- path
- PathString
要提供健康狀態檢查狀態的路徑。
- port
- Int32
要接聽的連接埠。 必須是伺服器正在接聽的本機埠。
傳回
作業完成後的 app
參考。
備註
如果 path
設定為 null
或空字串,則健康情況檢查中介軟體會忽略 URL 路徑,並處理指定埠上的所有要求。 如果 path
設定為非空白值,健康情況檢查中介軟體會以符合不區分大小寫之所提供值的 path
URL 來處理要求,允許額外的尾端斜線 ('/') 字元。
健康情況檢查中介軟體會使用 來自 IOptions<TOptions> 的預設設定。
適用於
UseHealthChecks(IApplicationBuilder, PathString, String)
新增提供健康情況檢查狀態的中介軟體。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseHealthChecks(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Http::PathString path, System::String ^ port);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHealthChecks (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path, string port);
static member UseHealthChecks : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Http.PathString * string -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseHealthChecks (app As IApplicationBuilder, path As PathString, port As String) As IApplicationBuilder
參數
- path
- PathString
要提供健康狀態檢查狀態的路徑。
- port
- String
要接聽的連接埠。 必須是伺服器正在接聽的本機埠。
傳回
作業完成後的 app
參考。
備註
如果 path
設定為 null
或空字串,則健康情況檢查中介軟體會忽略 URL 路徑,並處理指定埠上的所有要求。 如果 path
設定為非空白值,健康情況檢查中介軟體會以符合不區分大小寫之所提供值的 path
URL 來處理要求,允許額外的尾端斜線 ('/') 字元。
健康情況檢查中介軟體會使用 來自 IOptions<TOptions> 的預設設定。
適用於
UseHealthChecks(IApplicationBuilder, PathString, Int32, HealthCheckOptions)
新增提供健康情況檢查狀態的中介軟體。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseHealthChecks(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Http::PathString path, int port, Microsoft::AspNetCore::Diagnostics::HealthChecks::HealthCheckOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHealthChecks (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path, int port, Microsoft.AspNetCore.Diagnostics.HealthChecks.HealthCheckOptions options);
static member UseHealthChecks : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Http.PathString * int * Microsoft.AspNetCore.Diagnostics.HealthChecks.HealthCheckOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseHealthChecks (app As IApplicationBuilder, path As PathString, port As Integer, options As HealthCheckOptions) As IApplicationBuilder
參數
- path
- PathString
要提供健康狀態檢查狀態的路徑。
- port
- Int32
要接聽的連接埠。 必須是伺服器正在接聽的本機埠。
- options
- HealthCheckOptions
HealthCheckOptions,用來設定中介軟體。
傳回
作業完成後的 app
參考。
備註
如果 path
設定為 null
或空字串,則健康情況檢查中介軟體會忽略 URL 路徑,並處理指定埠上的所有要求。 如果 path
設定為非空白值,健康情況檢查中介軟體會以符合不區分大小寫之所提供值的 path
URL 來處理要求,允許額外的尾端斜線 ('/') 字元。
適用於
UseHealthChecks(IApplicationBuilder, PathString, String, HealthCheckOptions)
新增提供健康情況檢查狀態的中介軟體。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseHealthChecks(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Http::PathString path, System::String ^ port, Microsoft::AspNetCore::Diagnostics::HealthChecks::HealthCheckOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHealthChecks (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path, string port, Microsoft.AspNetCore.Diagnostics.HealthChecks.HealthCheckOptions options);
static member UseHealthChecks : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Http.PathString * string * Microsoft.AspNetCore.Diagnostics.HealthChecks.HealthCheckOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseHealthChecks (app As IApplicationBuilder, path As PathString, port As String, options As HealthCheckOptions) As IApplicationBuilder
參數
- path
- PathString
要提供健康狀態檢查狀態的路徑。
- port
- String
要接聽的連接埠。 必須是伺服器正在接聽的本機埠。
- options
- HealthCheckOptions
HealthCheckOptions,用來設定中介軟體。
傳回
作業完成後的 app
參考。
備註
如果 path
設定為 null
或空字串,則健康情況檢查中介軟體會忽略 URL 路徑,並處理指定埠上的所有要求。 如果 path
設定為非空白值,健康情況檢查中介軟體會以符合不區分大小寫之所提供值的 path
URL 來處理要求,允許額外的尾端斜線 ('/') 字元。