KubernetesProbesExtensions.AddKubernetesProbes Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
AddKubernetesProbes(IServiceCollection) |
Registers liveness, startup and readiness probes using the default options. |
AddKubernetesProbes(IServiceCollection, IConfigurationSection) |
Registers liveness, startup and readiness probes using the configured options. |
AddKubernetesProbes(IServiceCollection, Action<KubernetesProbesOptions>) |
Registers liveness, startup and readiness probes using the configured options. |
Registers liveness, startup and readiness probes using the default options.
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
Parameters
- services
- IServiceCollection
The dependency injection container to add the probe to.
Returns
The value of services
.
Applies to
.NET 9 (package-provided) 및 기타 버전
제품 | 버전 |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
Registers liveness, startup and readiness probes using the configured options.
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
Parameters
- services
- IServiceCollection
The dependency injection container to add the probe to.
- section
- IConfigurationSection
Configuration for KubernetesProbesOptions.
Returns
The value of services
.
Applies to
.NET 9 (package-provided) 및 기타 버전
제품 | 버전 |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
Registers liveness, startup and readiness probes using the configured options.
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
Parameters
- services
- IServiceCollection
The dependency injection container to add the probe to.
- configure
- Action<KubernetesProbesOptions>
Configure action for KubernetesProbesOptions.
Returns
The value of services
.
Applies to
.NET 9 (package-provided) 및 기타 버전
제품 | 버전 |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET 피드백
.NET은(는) 오픈 소스 프로젝트입니다. 다음 링크를 선택하여 피드백을 제공해 주세요.