共用方式為


CommonHealthChecksExtensions.AddTelemetryHealthCheckPublisher 方法

定義

多載

AddTelemetryHealthCheckPublisher(IServiceCollection)

註冊健康情況檢查發行者,此發行者會發出代表應用程式健康情況的遙測。

AddTelemetryHealthCheckPublisher(IServiceCollection, IConfigurationSection)

註冊健康情況檢查發行者,此發行者會發出代表應用程式健康情況的遙測。

AddTelemetryHealthCheckPublisher(IServiceCollection, Action<TelemetryHealthCheckPublisherOptions>)

註冊健康情況檢查發行者,此發行者會發出代表應用程式健康情況的遙測。

AddTelemetryHealthCheckPublisher(IServiceCollection)

來源:
CommonHealthChecksExtensions.TelemetryPublisher.cs
來源:
CommonHealthChecksExtensions.TelemetryPublisher.cs

註冊健康情況檢查發行者,此發行者會發出代表應用程式健康情況的遙測。

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

參數

services
IServiceCollection

要加入發行者的相依性插入容器。

傳回

services 的值。

例外狀況

servicesnull

適用於

AddTelemetryHealthCheckPublisher(IServiceCollection, IConfigurationSection)

來源:
CommonHealthChecksExtensions.TelemetryPublisher.cs
來源:
CommonHealthChecksExtensions.TelemetryPublisher.cs

註冊健康情況檢查發行者,此發行者會發出代表應用程式健康情況的遙測。

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

參數

services
IServiceCollection

要加入發行者的相依性插入容器。

傳回

services 的值。

例外狀況

servicessectionnull

適用於

AddTelemetryHealthCheckPublisher(IServiceCollection, Action<TelemetryHealthCheckPublisherOptions>)

來源:
CommonHealthChecksExtensions.TelemetryPublisher.cs
來源:
CommonHealthChecksExtensions.TelemetryPublisher.cs

註冊健康情況檢查發行者,此發行者會發出代表應用程式健康情況的遙測。

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

參數

services
IServiceCollection

要加入發行者的相依性插入容器。

傳回

services 的值。

例外狀況

servicesconfigurenull

適用於