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
的值。