HttpClientLatencyTelemetryExtensions.AddHttpClientLatencyTelemetry Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
AddHttpClientLatencyTelemetry(IServiceCollection) |
Ajoute un DelegatingHandler pour collecter des informations de latence et enrichir le journal des requêtes sortant pour tous les clients http. |
AddHttpClientLatencyTelemetry(IServiceCollection, IConfigurationSection) |
Ajoute un DelegatingHandler pour collecter des informations de latence et enrichir le journal des requêtes sortant pour tous les clients http. |
AddHttpClientLatencyTelemetry(IServiceCollection, Action<HttpClientLatencyTelemetryOptions>) |
Ajoute un DelegatingHandler pour collecter des informations de latence et enrichir le journal des requêtes sortant pour tous les clients http. |
AddHttpClientLatencyTelemetry(IServiceCollection)
Ajoute un DelegatingHandler pour collecter des informations de latence et enrichir le journal des requêtes sortant pour tous les clients http.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddHttpClientLatencyTelemetry(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpClientLatencyTelemetry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddHttpClientLatencyTelemetry : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpClientLatencyTelemetry (services As IServiceCollection) As IServiceCollection
Paramètres
- services
- IServiceCollection
Retours
la valeur de la propriété services
;
Remarques
Cette extension configure globalement la collecte d’informations de latence pour tous les clients http.
S’applique à
AddHttpClientLatencyTelemetry(IServiceCollection, IConfigurationSection)
Ajoute un DelegatingHandler pour collecter des informations de latence et enrichir le journal des requêtes sortant pour tous les clients http.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddHttpClientLatencyTelemetry(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpClientLatencyTelemetry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddHttpClientLatencyTelemetry : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpClientLatencyTelemetry (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection
Paramètres
- services
- IServiceCollection
- section
- IConfigurationSection
IConfigurationSection à utiliser pour configurer HttpClientLatencyTelemetryOptions.
Retours
la valeur de la propriété services
;
Remarques
Cette extension configure la collecte automatique des journaux de requêtes sortants à l’échelle mondiale pour tous les clients http.
S’applique à
AddHttpClientLatencyTelemetry(IServiceCollection, Action<HttpClientLatencyTelemetryOptions>)
Ajoute un DelegatingHandler pour collecter des informations de latence et enrichir le journal des requêtes sortant pour tous les clients http.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddHttpClientLatencyTelemetry(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Http::Latency::HttpClientLatencyTelemetryOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpClientLatencyTelemetry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Http.Latency.HttpClientLatencyTelemetryOptions> configure);
static member AddHttpClientLatencyTelemetry : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Http.Latency.HttpClientLatencyTelemetryOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpClientLatencyTelemetry (services As IServiceCollection, configure As Action(Of HttpClientLatencyTelemetryOptions)) As IServiceCollection
Paramètres
- services
- IServiceCollection
- configure
- Action<HttpClientLatencyTelemetryOptions>
Délégué à configurer HttpClientLatencyTelemetryOptions avec.
Retours
la valeur de la propriété services
;
Remarques
Cette extension configure la collecte automatique des journaux de requêtes sortants à l’échelle mondiale pour tous les clients http.