RequestLatencyTelemetryExtensions.AddRequestLatencyTelemetry 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
AddRequestLatencyTelemetry(IServiceCollection) |
Agrega middleware de telemetría de latencia de solicitud al especificado IServiceCollection. |
AddRequestLatencyTelemetry(IServiceCollection, IConfigurationSection) |
Agrega middleware de telemetría de latencia de solicitud al especificado IServiceCollection. |
AddRequestLatencyTelemetry(IServiceCollection, Action<RequestLatencyTelemetryOptions>) |
Agrega middleware de telemetría de latencia de solicitud al especificado IServiceCollection. |
AddRequestLatencyTelemetry(IServiceCollection)
Agrega middleware de telemetría de latencia de solicitud al especificado IServiceCollection.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestLatencyTelemetry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddRequestLatencyTelemetry : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestLatencyTelemetry (services As IServiceCollection) As IServiceCollection
Parámetros
- services
- IServiceCollection
El objeto IServiceCollection al que se va a agregar.
Devoluciones
Se ha agregado una recopilación de servicios con middleware de telemetría de latencia de solicitud.
Excepciones
services
es null
.
Se aplica a
AddRequestLatencyTelemetry(IServiceCollection, IConfigurationSection)
Agrega middleware de telemetría de latencia de solicitud al especificado IServiceCollection.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestLatencyTelemetry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddRequestLatencyTelemetry : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestLatencyTelemetry (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection
Parámetros
- services
- IServiceCollection
El objeto IServiceCollection al que se va a agregar.
- section
- IConfigurationSection
Configuración de RequestLatencyTelemetryOptions.
Devoluciones
Se ha agregado una recopilación de servicios con middleware de telemetría de latencia de solicitud.
Excepciones
services
o section
es null
.
Se aplica a
AddRequestLatencyTelemetry(IServiceCollection, Action<RequestLatencyTelemetryOptions>)
Agrega middleware de telemetría de latencia de solicitud al especificado IServiceCollection.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestLatencyTelemetry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Telemetry.RequestLatencyTelemetryOptions> configure);
static member AddRequestLatencyTelemetry : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Telemetry.RequestLatencyTelemetryOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestLatencyTelemetry (services As IServiceCollection, configure As Action(Of RequestLatencyTelemetryOptions)) As IServiceCollection
Parámetros
- services
- IServiceCollection
El objeto IServiceCollection al que se va a agregar.
- configure
- Action<RequestLatencyTelemetryOptions>
Configuración de RequestLatencyTelemetryOptions.
Devoluciones
Se ha agregado una recopilación de servicios con middleware de telemetría de latencia de solicitud.
Excepciones
services
o configure
es null
.