CommonHealthChecksExtensions.AddTelemetryHealthCheckPublisher Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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)
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
services
adalah null
.
Berlaku untuk
AddTelemetryHealthCheckPublisher(IServiceCollection, IConfigurationSection)
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.
- section
- IConfigurationSection
Konfigurasi untuk TelemetryHealthCheckPublisherOptions.
Mengembalikan
Nilai dari services
.
Pengecualian
services
atau section
adalah null
.
Berlaku untuk
AddTelemetryHealthCheckPublisher(IServiceCollection, Action<TelemetryHealthCheckPublisherOptions>)
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.
- configure
- Action<TelemetryHealthCheckPublisherOptions>
Konfigurasi untuk TelemetryHealthCheckPublisherOptions.
Mengembalikan
Nilai dari services
.
Pengecualian
services
atau configure
adalah null
.