CoreHealthChecksExtensions.AddKubernetesHealthCheckPublisher Method
Definition
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.
Overloads
AddKubernetesHealthCheckPublisher(IServiceCollection) |
Registers a health status publisher which opens a TCP port if the application is considered healthy. |
AddKubernetesHealthCheckPublisher(IServiceCollection, IConfigurationSection) |
Registers a health status publisher which opens a TCP port if the application is considered healthy. |
AddKubernetesHealthCheckPublisher(IServiceCollection, Action<KubernetesHealthCheckPublisherOptions>) |
Registers a health status publisher which opens a TCP port if the application is considered healthy. |
AddKubernetesHealthCheckPublisher(IServiceCollection)
Registers a health status publisher which opens a TCP port if the application is considered healthy.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddKubernetesHealthCheckPublisher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesHealthCheckPublisher(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddKubernetesHealthCheckPublisher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddKubernetesHealthCheckPublisher (services As IServiceCollection) As IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection to add the publisher to.
Returns
The value of services
.
Exceptions
If services
is null
.
Applies to
AddKubernetesHealthCheckPublisher(IServiceCollection, IConfigurationSection)
Registers a health status publisher which opens a TCP port if the application is considered healthy.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddKubernetesHealthCheckPublisher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesHealthCheckPublisher(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddKubernetesHealthCheckPublisher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddKubernetesHealthCheckPublisher (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection to add the publisher to.
- section
- IConfigurationSection
Configuration for KubernetesHealthCheckPublisherOptions.
Returns
The value of services
.
Exceptions
If services
or section
are null
.
Applies to
AddKubernetesHealthCheckPublisher(IServiceCollection, Action<KubernetesHealthCheckPublisherOptions>)
Registers a health status publisher which opens a TCP port if the application is considered healthy.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddKubernetesHealthCheckPublisher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::HealthChecks::KubernetesHealthCheckPublisherOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesHealthCheckPublisher(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.HealthChecks.KubernetesHealthCheckPublisherOptions> configure);
static member AddKubernetesHealthCheckPublisher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.HealthChecks.KubernetesHealthCheckPublisherOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddKubernetesHealthCheckPublisher (services As IServiceCollection, configure As Action(Of KubernetesHealthCheckPublisherOptions)) As IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection to add the publisher to.
- configure
- Action<KubernetesHealthCheckPublisherOptions>
Configuration for KubernetesHealthCheckPublisherOptions.
Returns
The value of services
.
Exceptions
If services
or configure
are null
.
Applies to
.NET