次の方法で共有


HttpLoggingServicesExtensions.AddHttpLoggingInterceptor<T> メソッド

定義

指定した型を DI コンテナーに として IHttpLoggingInterceptor 登録します。

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

を実装する IHttpLoggingInterceptor型。

パラメーター

services
IServiceCollection

サービス コレクション。

戻り値

チェーン用の元のサービス コレクション。

適用対象