CommonHealthChecksExtensions.AddTelemetryHealthCheckPublisher Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
AddTelemetryHealthCheckPublisher(IServiceCollection) |
Registra um editor de marcar de integridade que emite telemetria que representa a integridade do aplicativo. |
AddTelemetryHealthCheckPublisher(IServiceCollection, IConfigurationSection) |
Registra um editor de marcar de integridade que emite telemetria que representa a integridade do aplicativo. |
AddTelemetryHealthCheckPublisher(IServiceCollection, Action<TelemetryHealthCheckPublisherOptions>) |
Registra um editor de marcar de integridade que emite telemetria que representa a integridade do aplicativo. |
AddTelemetryHealthCheckPublisher(IServiceCollection)
Registra um editor de marcar de integridade que emite telemetria que representa a integridade do aplicativo.
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
Parâmetros
- services
- IServiceCollection
O contêiner de injeção de dependência ao qual adicionar o editor.
Retornos
O valor de services
.
Exceções
services
é null
.
Aplica-se a
AddTelemetryHealthCheckPublisher(IServiceCollection, IConfigurationSection)
Registra um editor de marcar de integridade que emite telemetria que representa a integridade do aplicativo.
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
Parâmetros
- services
- IServiceCollection
O contêiner de injeção de dependência ao qual adicionar o editor.
- section
- IConfigurationSection
Configuração para TelemetryHealthCheckPublisherOptions.
Retornos
O valor de services
.
Exceções
services
ou section
é null
.
Aplica-se a
AddTelemetryHealthCheckPublisher(IServiceCollection, Action<TelemetryHealthCheckPublisherOptions>)
Registra um editor de marcar de integridade que emite telemetria que representa a integridade do aplicativo.
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
Parâmetros
- services
- IServiceCollection
O contêiner de injeção de dependência ao qual adicionar o editor.
- configure
- Action<TelemetryHealthCheckPublisherOptions>
Configuração para TelemetryHealthCheckPublisherOptions.
Retornos
O valor de services
.
Exceções
services
ou configure
é null
.