KubernetesProbesExtensions.AddKubernetesProbes 方法

定义

重载

AddKubernetesProbes(IServiceCollection)

使用默认选项注册活动、启动和就绪情况探测。

AddKubernetesProbes(IServiceCollection, IConfigurationSection)

使用配置的选项注册运行情况、启动和就绪情况探测。

AddKubernetesProbes(IServiceCollection, Action<KubernetesProbesOptions>)

使用配置的选项注册运行情况、启动和就绪情况探测。

AddKubernetesProbes(IServiceCollection)

Source:
KubernetesProbesExtensions.cs
Source:
KubernetesProbesExtensions.cs

使用默认选项注册活动、启动和就绪情况探测。

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)

Source:
KubernetesProbesExtensions.cs
Source:
KubernetesProbesExtensions.cs

使用配置的选项注册运行情况、启动和就绪情况探测。

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

要向其添加探测的依赖项注入容器。

返回

services 的值。

适用于

AddKubernetesProbes(IServiceCollection, Action<KubernetesProbesOptions>)

Source:
KubernetesProbesExtensions.cs
Source:
KubernetesProbesExtensions.cs

使用配置的选项注册运行情况、启动和就绪情况探测。

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

要向其添加探测的依赖项注入容器。

返回

services 的值。

适用于