KubernetesProbesExtensions.AddKubernetesProbes 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddKubernetesProbes(IServiceCollection) |
使用預設選項註冊即時、啟動和整備探查。 |
AddKubernetesProbes(IServiceCollection, IConfigurationSection) |
使用已設定的選項註冊即時性、啟動和整備探查。 |
AddKubernetesProbes(IServiceCollection, Action<KubernetesProbesOptions>) |
使用已設定的選項註冊即時性、啟動和整備探查。 |
AddKubernetesProbes(IServiceCollection)
使用預設選項註冊即時、啟動和整備探查。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddKubernetesProbes(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesProbes (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddKubernetesProbes : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddKubernetesProbes (services As IServiceCollection) As IServiceCollection
參數
- services
- IServiceCollection
要加入探查的相依性插入容器。
傳回
services
的值。
適用於
AddKubernetesProbes(IServiceCollection, IConfigurationSection)
使用已設定的選項註冊即時性、啟動和整備探查。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddKubernetesProbes(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesProbes (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddKubernetesProbes : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddKubernetesProbes (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection
參數
- services
- IServiceCollection
要加入探查的相依性插入容器。
- section
- IConfigurationSection
傳回
services
的值。
適用於
AddKubernetesProbes(IServiceCollection, Action<KubernetesProbesOptions>)
使用已設定的選項註冊即時性、啟動和整備探查。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddKubernetesProbes(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::Probes::KubernetesProbesOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesProbes (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.Probes.KubernetesProbesOptions> configure);
static member AddKubernetesProbes : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.Probes.KubernetesProbesOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddKubernetesProbes (services As IServiceCollection, configure As Action(Of KubernetesProbesOptions)) As IServiceCollection
參數
- services
- IServiceCollection
要加入探查的相依性插入容器。
- configure
- Action<KubernetesProbesOptions>
設定的 KubernetesProbesOptions動作。
傳回
services
的值。