Sdílet prostřednictvím


CommonHealthChecksExtensions.AddTelemetryHealthCheckPublisher Metoda

Definice

Přetížení

AddTelemetryHealthCheckPublisher(IServiceCollection)

Zaregistruje vydavatele kontroly stavu, který generuje telemetrii představující stav aplikace.

AddTelemetryHealthCheckPublisher(IServiceCollection, IConfigurationSection)

Zaregistruje vydavatele kontroly stavu, který generuje telemetrii představující stav aplikace.

AddTelemetryHealthCheckPublisher(IServiceCollection, Action<TelemetryHealthCheckPublisherOptions>)

Zaregistruje vydavatele kontroly stavu, který generuje telemetrii představující stav aplikace.

AddTelemetryHealthCheckPublisher(IServiceCollection)

Zdroj:
CommonHealthChecksExtensions.TelemetryPublisher.cs

Zaregistruje vydavatele kontroly stavu, který generuje telemetrii představující stav aplikace.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddTelemetryHealthCheckPublisher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTelemetryHealthCheckPublisher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddTelemetryHealthCheckPublisher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddTelemetryHealthCheckPublisher (services As IServiceCollection) As IServiceCollection

Parametry

services
IServiceCollection

Kontejner injektáže závislostí, do který chcete přidat vydavatele.

Návraty

Hodnota .services

Výjimky

services je null.

Platí pro

AddTelemetryHealthCheckPublisher(IServiceCollection, IConfigurationSection)

Zdroj:
CommonHealthChecksExtensions.TelemetryPublisher.cs

Zaregistruje vydavatele kontroly stavu, který generuje telemetrii představující stav aplikace.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddTelemetryHealthCheckPublisher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTelemetryHealthCheckPublisher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddTelemetryHealthCheckPublisher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddTelemetryHealthCheckPublisher (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

Parametry

services
IServiceCollection

Kontejner injektáže závislostí, do který chcete přidat vydavatele.

Návraty

Hodnota .services

Výjimky

services nebo section je null.

Platí pro

AddTelemetryHealthCheckPublisher(IServiceCollection, Action<TelemetryHealthCheckPublisherOptions>)

Zdroj:
CommonHealthChecksExtensions.TelemetryPublisher.cs

Zaregistruje vydavatele kontroly stavu, který generuje telemetrii představující stav aplikace.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddTelemetryHealthCheckPublisher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::HealthChecks::TelemetryHealthCheckPublisherOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTelemetryHealthCheckPublisher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.HealthChecks.TelemetryHealthCheckPublisherOptions> configure);
static member AddTelemetryHealthCheckPublisher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.HealthChecks.TelemetryHealthCheckPublisherOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddTelemetryHealthCheckPublisher (services As IServiceCollection, configure As Action(Of TelemetryHealthCheckPublisherOptions)) As IServiceCollection

Parametry

services
IServiceCollection

Kontejner injektáže závislostí, do který chcete přidat vydavatele.

Návraty

Hodnota .services

Výjimky

services nebo configure je null.

Platí pro