Bagikan melalui


CommonHealthChecksExtensions.AddTelemetryHealthCheckPublisher Metode

Definisi

Overload

AddTelemetryHealthCheckPublisher(IServiceCollection)

Mendaftarkan penerbit pemeriksaan kesehatan yang memancarkan telemetri yang mewakili kesehatan aplikasi.

AddTelemetryHealthCheckPublisher(IServiceCollection, IConfigurationSection)

Mendaftarkan penerbit pemeriksaan kesehatan yang memancarkan telemetri yang mewakili kesehatan aplikasi.

AddTelemetryHealthCheckPublisher(IServiceCollection, Action<TelemetryHealthCheckPublisherOptions>)

Mendaftarkan penerbit pemeriksaan kesehatan yang memancarkan telemetri yang mewakili kesehatan aplikasi.

AddTelemetryHealthCheckPublisher(IServiceCollection)

Sumber:
CommonHealthChecksExtensions.TelemetryPublisher.cs

Mendaftarkan penerbit pemeriksaan kesehatan yang memancarkan telemetri yang mewakili kesehatan aplikasi.

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

Parameter

services
IServiceCollection

Kontainer injeksi dependensi untuk menambahkan penerbit.

Mengembalikan

Nilai dari services.

Pengecualian

servicesadalah null.

Berlaku untuk

AddTelemetryHealthCheckPublisher(IServiceCollection, IConfigurationSection)

Sumber:
CommonHealthChecksExtensions.TelemetryPublisher.cs

Mendaftarkan penerbit pemeriksaan kesehatan yang memancarkan telemetri yang mewakili kesehatan aplikasi.

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

Parameter

services
IServiceCollection

Kontainer injeksi dependensi untuk menambahkan penerbit.

Mengembalikan

Nilai dari services.

Pengecualian

services atau section adalah null.

Berlaku untuk

AddTelemetryHealthCheckPublisher(IServiceCollection, Action<TelemetryHealthCheckPublisherOptions>)

Sumber:
CommonHealthChecksExtensions.TelemetryPublisher.cs

Mendaftarkan penerbit pemeriksaan kesehatan yang memancarkan telemetri yang mewakili kesehatan aplikasi.

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

Parameter

services
IServiceCollection

Kontainer injeksi dependensi untuk menambahkan penerbit.

Mengembalikan

Nilai dari services.

Pengecualian

services atau configure adalah null.

Berlaku untuk