Condividi tramite


HttpLoggingServicesExtensions.AddHttpLogging Metodo

Definizione

Overload

AddHttpLogging(IServiceCollection)

Aggiunge servizi di registrazione HTTP.

AddHttpLogging(IServiceCollection, Action<HttpLoggingOptions>)

Aggiunge servizi di registrazione HTTP.

AddHttpLogging(IServiceCollection)

Aggiunge servizi di registrazione HTTP.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddHttpLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpLogging (services As IServiceCollection) As IServiceCollection

Parametri

services
IServiceCollection

IServiceCollection per l'aggiunta di servizi.

Restituisce

Raccolta di servizi originale per il concatenamento.

Si applica a

AddHttpLogging(IServiceCollection, Action<HttpLoggingOptions>)

Origine:
HttpLoggingServicesExtensions.cs

Aggiunge servizi di registrazione HTTP.

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

Parametri

services
IServiceCollection

IServiceCollection per l'aggiunta di servizi.

configureOptions
Action<HttpLoggingOptions>

Delegato per configurare il HttpLoggingOptions.

Restituisce

Raccolta di servizi originale per il concatenamento.

Si applica a