HttpLoggingServicesExtensions.AddHttpLoggingInterceptor<T> Método

Definición

Registra el tipo especificado como en IHttpLoggingInterceptor el contenedor de inserción de dependencias.

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

Parámetros de tipo

T

Tipo que implementa IHttpLoggingInterceptor.

Parámetros

services
IServiceCollection

Colección de servicios.

Devoluciones

Colección de servicios original para encadenar.

Se aplica a