TcpEndpointProbesExtensions.AddTcpEndpointProbe 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddTcpEndpointProbe(IServiceCollection) |
如果服務被視為狀況良好 IHealthCheck,請使用 TCP 通訊埠註冊健康狀態報告。 |
AddTcpEndpointProbe(IServiceCollection, IConfigurationSection) |
如果服務被視為狀況良好 IHealthCheck,請使用 TCP 通訊埠註冊健康狀態報告。 |
AddTcpEndpointProbe(IServiceCollection, Action<TcpEndpointProbesOptions>) |
如果服務被視為狀況良好 IHealthCheck,請使用 TCP 通訊埠註冊健康狀態報告。 |
AddTcpEndpointProbe(IServiceCollection, String) |
如果服務被視為狀況良好 IHealthCheck,請使用 TCP 通訊埠註冊健康狀態報告。 |
AddTcpEndpointProbe(IServiceCollection, String, IConfigurationSection) |
如果服務被視為狀況良好 IHealthCheck,請使用 TCP 通訊埠註冊健康狀態報告。 |
AddTcpEndpointProbe(IServiceCollection, String, Action<TcpEndpointProbesOptions>) |
如果服務被視為狀況良好 IHealthCheck,請使用 TCP 通訊埠註冊健康狀態報告。 |
AddTcpEndpointProbe(IServiceCollection)
如果服務被視為狀況良好 IHealthCheck,請使用 TCP 通訊埠註冊健康狀態報告。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddTcpEndpointProbe(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTcpEndpointProbe (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddTcpEndpointProbe : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddTcpEndpointProbe (services As IServiceCollection) As IServiceCollection
參數
- services
- IServiceCollection
要新增服務的 IServiceCollection。
傳回
services
的值。
適用於
AddTcpEndpointProbe(IServiceCollection, IConfigurationSection)
如果服務被視為狀況良好 IHealthCheck,請使用 TCP 通訊埠註冊健康狀態報告。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddTcpEndpointProbe(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ configurationSection);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTcpEndpointProbe (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection configurationSection);
static member AddTcpEndpointProbe : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddTcpEndpointProbe (services As IServiceCollection, configurationSection As IConfigurationSection) As IServiceCollection
參數
- services
- IServiceCollection
要新增服務的 IServiceCollection。
- configurationSection
- IConfigurationSection
傳回
services
的值。
適用於
AddTcpEndpointProbe(IServiceCollection, Action<TcpEndpointProbesOptions>)
如果服務被視為狀況良好 IHealthCheck,請使用 TCP 通訊埠註冊健康狀態報告。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddTcpEndpointProbe(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::Probes::TcpEndpointProbesOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTcpEndpointProbe (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.Probes.TcpEndpointProbesOptions> configure);
static member AddTcpEndpointProbe : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.Probes.TcpEndpointProbesOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddTcpEndpointProbe (services As IServiceCollection, configure As Action(Of TcpEndpointProbesOptions)) As IServiceCollection
參數
- services
- IServiceCollection
要新增服務的 IServiceCollection。
- configure
- Action<TcpEndpointProbesOptions>
傳回
services
的值。
適用於
AddTcpEndpointProbe(IServiceCollection, String)
如果服務被視為狀況良好 IHealthCheck,請使用 TCP 通訊埠註冊健康狀態報告。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddTcpEndpointProbe(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTcpEndpointProbe (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name);
static member AddTcpEndpointProbe : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddTcpEndpointProbe (services As IServiceCollection, name As String) As IServiceCollection
參數
- services
- IServiceCollection
要新增服務的 IServiceCollection。
- name
- String
用來擷取選項的名稱。
傳回
services
的值。
適用於
AddTcpEndpointProbe(IServiceCollection, String, IConfigurationSection)
如果服務被視為狀況良好 IHealthCheck,請使用 TCP 通訊埠註冊健康狀態報告。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddTcpEndpointProbe(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Microsoft::Extensions::Configuration::IConfigurationSection ^ configurationSection);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTcpEndpointProbe (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, Microsoft.Extensions.Configuration.IConfigurationSection configurationSection);
static member AddTcpEndpointProbe : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddTcpEndpointProbe (services As IServiceCollection, name As String, configurationSection As IConfigurationSection) As IServiceCollection
參數
- services
- IServiceCollection
要新增服務的 IServiceCollection。
- name
- String
選項的名稱。
- configurationSection
- IConfigurationSection
傳回
services
的值。
適用於
AddTcpEndpointProbe(IServiceCollection, String, Action<TcpEndpointProbesOptions>)
如果服務被視為狀況良好 IHealthCheck,請使用 TCP 通訊埠註冊健康狀態報告。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddTcpEndpointProbe(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Action<Microsoft::Extensions::Diagnostics::Probes::TcpEndpointProbesOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTcpEndpointProbe (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, Action<Microsoft.Extensions.Diagnostics.Probes.TcpEndpointProbesOptions> configure);
static member AddTcpEndpointProbe : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Action<Microsoft.Extensions.Diagnostics.Probes.TcpEndpointProbesOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddTcpEndpointProbe (services As IServiceCollection, name As String, configure As Action(Of TcpEndpointProbesOptions)) As IServiceCollection
參數
- services
- IServiceCollection
要新增服務的 IServiceCollection。
- name
- String
選項的名稱。
- configure
- Action<TcpEndpointProbesOptions>
傳回
services
的值。