Przeczytaj w języku angielskim

Udostępnij za pośrednictwem


CoreHealthChecksExtensions.AddKubernetesHealthCheckPublisher Method

Definition

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.

C#
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesHealthCheckPublisher(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);

Parameters

services
IServiceCollection

The IServiceCollection to add the publisher to.

Returns

The value of services.

Exceptions

If services is null.

Applies to

.NET 10 (package-provided) i inne wersje
Produkt Wersje
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)

AddKubernetesHealthCheckPublisher(IServiceCollection, IConfigurationSection)

Registers a health status publisher which opens a TCP port if the application is considered healthy.

C#
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesHealthCheckPublisher(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);

Parameters

services
IServiceCollection

The IServiceCollection to add the publisher to.

Returns

The value of services.

Exceptions

If services or section are null.

Applies to

.NET 10 (package-provided) i inne wersje
Produkt Wersje
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)

AddKubernetesHealthCheckPublisher(IServiceCollection, Action<KubernetesHealthCheckPublisherOptions>)

Registers a health status publisher which opens a TCP port if the application is considered healthy.

C#
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddKubernetesHealthCheckPublisher(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.HealthChecks.KubernetesHealthCheckPublisherOptions> configure);

Parameters

services
IServiceCollection

The IServiceCollection to add the publisher to.

Returns

The value of services.

Exceptions

If services or configure are null.

Applies to

.NET 10 (package-provided) i inne wersje
Produkt Wersje
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)