Compartir a través de


FakeLoggerServiceCollectionExtensions.AddFakeLogging Método

Definición

Sobrecargas

AddFakeLogging(IServiceCollection)

Configura el registro falso con opciones predeterminadas.

AddFakeLogging(IServiceCollection, IConfigurationSection)

Configura el registro falso.

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Configura el registro falso.

AddFakeLogging(IServiceCollection)

Source:
FakeLoggerServiceCollectionExtensions.cs
Source:
FakeLoggerServiceCollectionExtensions.cs
Source:
FakeLoggerServiceCollectionExtensions.cs

Configura el registro falso con opciones predeterminadas.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddFakeLogging(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFakeLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddFakeLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFakeLogging (services As IServiceCollection) As IServiceCollection

Parámetros

services
IServiceCollection

Colección de servicios.

Devoluciones

El valor de services.

Se aplica a

AddFakeLogging(IServiceCollection, IConfigurationSection)

Source:
FakeLoggerServiceCollectionExtensions.cs
Source:
FakeLoggerServiceCollectionExtensions.cs
Source:
FakeLoggerServiceCollectionExtensions.cs

Configura el registro falso.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddFakeLogging(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFakeLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddFakeLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFakeLogging (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

Parámetros

services
IServiceCollection

Colección de servicios.

section
IConfigurationSection

Sección de configuración que contiene FakeLogCollectorOptions.

Devoluciones

El valor de services.

Se aplica a

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Source:
FakeLoggerServiceCollectionExtensions.cs
Source:
FakeLoggerServiceCollectionExtensions.cs
Source:
FakeLoggerServiceCollectionExtensions.cs

Configura el registro falso.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddFakeLogging(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Logging::Testing::FakeLogCollectorOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFakeLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Logging.Testing.FakeLogCollectorOptions> configure);
static member AddFakeLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Logging.Testing.FakeLogCollectorOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFakeLogging (services As IServiceCollection, configure As Action(Of FakeLogCollectorOptions)) As IServiceCollection

Parámetros

services
IServiceCollection

Colección de servicios.

configure
Action<FakeLogCollectorOptions>

Opciones de configuración de registro.

Devoluciones

El valor de services.

Se aplica a