CommonHealthChecksExtensions.AddTelemetryHealthCheckPublisher Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddTelemetryHealthCheckPublisher(IServiceCollection) |
Registra un publicador de comprobación de estado que emite telemetría que representa el estado de la aplicación. |
AddTelemetryHealthCheckPublisher(IServiceCollection, IConfigurationSection) |
Registra un publicador de comprobación de estado que emite telemetría que representa el estado de la aplicación. |
AddTelemetryHealthCheckPublisher(IServiceCollection, Action<TelemetryHealthCheckPublisherOptions>) |
Registra un publicador de comprobación de estado que emite telemetría que representa el estado de la aplicación. |
AddTelemetryHealthCheckPublisher(IServiceCollection)
Registra un publicador de comprobación de estado que emite telemetría que representa el estado de la aplicación.
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
Contenedor de inserción de dependencias al que se va a agregar el publicador.
Devoluciones
El valor de services
.
Excepciones
services
es null
.
Se aplica a
AddTelemetryHealthCheckPublisher(IServiceCollection, IConfigurationSection)
Registra un publicador de comprobación de estado que emite telemetría que representa el estado de la aplicación.
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
Contenedor de inserción de dependencias al que se va a agregar el publicador.
- section
- IConfigurationSection
Configuración de TelemetryHealthCheckPublisherOptions.
Devoluciones
El valor de services
.
Excepciones
services
o section
es null
.
Se aplica a
AddTelemetryHealthCheckPublisher(IServiceCollection, Action<TelemetryHealthCheckPublisherOptions>)
Registra un publicador de comprobación de estado que emite telemetría que representa el estado de la aplicación.
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
Contenedor de inserción de dependencias al que se va a agregar el publicador.
- configure
- Action<TelemetryHealthCheckPublisherOptions>
Configuración de TelemetryHealthCheckPublisherOptions.
Devoluciones
El valor de services
.
Excepciones
services
o configure
es null
.