HttpLoggingServicesExtensions.AddW3CLogging Метод

Определение

Добавляет службы ведения журнала W3C.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddW3CLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.HttpLogging.W3CLoggerOptions> configureOptions);
static member AddW3CLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.HttpLogging.W3CLoggerOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddW3CLogging (services As IServiceCollection, configureOptions As Action(Of W3CLoggerOptions)) As IServiceCollection

Параметры

services
IServiceCollection

Для IServiceCollection добавления служб.

configureOptions
Action<W3CLoggerOptions>

Делегат для настройки W3CLoggerOptions.

Возвращаемое значение

Исходная коллекция служб для цепочки.

Применяется к