Aracılığıyla paylaş


HttpLoggingServicesExtensions.AddHttpLoggingInterceptor<T> Yöntem

Tanım

Verilen türü DI kapsayıcısında olarak IHttpLoggingInterceptor kaydeder.

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

Tür Parametreleri

T

uygulayan IHttpLoggingInterceptorbir tür.

Parametreler

services
IServiceCollection

Hizmet koleksiyonu.

Döndürülenler

Zincirleme için özgün hizmet koleksiyonu.

Şunlara uygulanır