Partager via


HttpLoggingServicesExtensions.AddHttpLoggingInterceptor<T> Méthode

Définition

Inscrit le type donné en tant que IHttpLoggingInterceptor dans le conteneur d’adresses di.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpLoggingInterceptor<T> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where T : class, Microsoft.AspNetCore.HttpLogging.IHttpLoggingInterceptor;
static member AddHttpLoggingInterceptor : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'T : null and 'T :> Microsoft.AspNetCore.HttpLogging.IHttpLoggingInterceptor)
<Extension()>
Public Function AddHttpLoggingInterceptor(Of T As {Class, IHttpLoggingInterceptor}) (services As IServiceCollection) As IServiceCollection

Paramètres de type

T

Type qui implémente IHttpLoggingInterceptor.

Paramètres

services
IServiceCollection

Collection de services.

Retours

Collection de services d’origine pour le chaînage.

S’applique à