Compartilhar via


FakeLoggerServiceCollectionExtensions.AddFakeLogging Método

Definição

Sobrecargas

AddFakeLogging(IServiceCollection)

Configura o log falso com opções padrão.

AddFakeLogging(IServiceCollection, IConfigurationSection)

Configura o registro em log falso.

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Configura o registro em log falso.

AddFakeLogging(IServiceCollection)

Origem:
FakeLoggerServiceCollectionExtensions.cs
Origem:
FakeLoggerServiceCollectionExtensions.cs
Origem:
FakeLoggerServiceCollectionExtensions.cs

Configura o log falso com opções padrão.

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

Coleção de serviços.

Retornos

O valor de services.

Aplica-se a

AddFakeLogging(IServiceCollection, IConfigurationSection)

Origem:
FakeLoggerServiceCollectionExtensions.cs
Origem:
FakeLoggerServiceCollectionExtensions.cs
Origem:
FakeLoggerServiceCollectionExtensions.cs

Configura o registro em log 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

Coleção de serviços.

section
IConfigurationSection

Seção de configuração que contém FakeLogCollectorOptions.

Retornos

O valor de services.

Aplica-se a

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Origem:
FakeLoggerServiceCollectionExtensions.cs
Origem:
FakeLoggerServiceCollectionExtensions.cs
Origem:
FakeLoggerServiceCollectionExtensions.cs

Configura o registro em log 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

Coleção de serviços.

configure
Action<FakeLogCollectorOptions>

Opções de configuração de registro em log.

Retornos

O valor de services.

Aplica-se a