HttpLoggingServicesExtensions.AddHttpLogging Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddHttpLogging(IServiceCollection) |
Agrega servicios de registro HTTP. |
AddHttpLogging(IServiceCollection, Action<HttpLoggingOptions>) |
Agrega servicios de registro HTTP. |
AddHttpLogging(IServiceCollection)
Agrega servicios de registro 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
Parámetros
- services
- IServiceCollection
El IServiceCollection para agregar servicios.
Devoluciones
Colección de servicios original para encadenar.
Se aplica a
AddHttpLogging(IServiceCollection, Action<HttpLoggingOptions>)
Agrega servicios de registro 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
Parámetros
- services
- IServiceCollection
El IServiceCollection para agregar servicios.
- configureOptions
- Action<HttpLoggingOptions>
Delegado para configurar el HttpLoggingOptions.
Devoluciones
Colección de servicios original para encadenar.