CommonHealthChecksExtensions.AddTelemetryHealthCheckPublisher 方法

定义

重载

AddTelemetryHealthCheckPublisher(IServiceCollection)

检查发布者注册运行状况,该发布者发出表示应用程序运行状况的遥测数据。

AddTelemetryHealthCheckPublisher(IServiceCollection, IConfigurationSection)

检查发布者注册运行状况,该发布者发出表示应用程序运行状况的遥测数据。

AddTelemetryHealthCheckPublisher(IServiceCollection, Action<TelemetryHealthCheckPublisherOptions>)

检查发布者注册运行状况,该发布者发出表示应用程序运行状况的遥测数据。

AddTelemetryHealthCheckPublisher(IServiceCollection)

Source:
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)

Source:
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>)

Source:
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

适用于