Partager via


FakeLoggerServiceCollectionExtensions.AddFakeLogging Méthode

Définition

Surcharges

AddFakeLogging(IServiceCollection)

Configure la fausse journalisation avec les options par défaut.

AddFakeLogging(IServiceCollection, IConfigurationSection)

Configure la fausse journalisation.

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Configure la fausse journalisation.

AddFakeLogging(IServiceCollection)

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

Configure la fausse journalisation avec les options par défaut.

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

Paramètres

services
IServiceCollection

Collection de services.

Retours

la valeur de la propriété services ;

S’applique à

AddFakeLogging(IServiceCollection, IConfigurationSection)

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

Configure la fausse journalisation.

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

Paramètres

services
IServiceCollection

Collection de services.

section
IConfigurationSection

Section de configuration qui contient FakeLogCollectorOptions.

Retours

la valeur de la propriété services ;

S’applique à

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

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

Configure la fausse journalisation.

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

Paramètres

services
IServiceCollection

Collection de services.

configure
Action<FakeLogCollectorOptions>

Options de configuration de journalisation.

Retours

la valeur de la propriété services ;

S’applique à