Sdílet prostřednictvím


FakeLoggerServiceCollectionExtensions.AddFakeLogging Metoda

Definice

Přetížení

AddFakeLogging(IServiceCollection)

Nakonfiguruje falešné protokolování s výchozími možnostmi.

AddFakeLogging(IServiceCollection, IConfigurationSection)

Konfiguruje falešné protokolování.

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Konfiguruje falešné protokolování.

AddFakeLogging(IServiceCollection)

Zdroj:
FakeLoggerServiceCollectionExtensions.cs
Zdroj:
FakeLoggerServiceCollectionExtensions.cs
Zdroj:
FakeLoggerServiceCollectionExtensions.cs

Nakonfiguruje falešné protokolování s výchozími možnostmi.

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

Parametry

services
IServiceCollection

Kolekce služeb.

Návraty

Hodnota .services

Platí pro

AddFakeLogging(IServiceCollection, IConfigurationSection)

Zdroj:
FakeLoggerServiceCollectionExtensions.cs
Zdroj:
FakeLoggerServiceCollectionExtensions.cs
Zdroj:
FakeLoggerServiceCollectionExtensions.cs

Konfiguruje falešné protokolování.

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

Parametry

services
IServiceCollection

Kolekce služeb.

section
IConfigurationSection

Oddíl konfigurace, který obsahuje FakeLogCollectorOptions.

Návraty

Hodnota .services

Platí pro

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Zdroj:
FakeLoggerServiceCollectionExtensions.cs
Zdroj:
FakeLoggerServiceCollectionExtensions.cs
Zdroj:
FakeLoggerServiceCollectionExtensions.cs

Konfiguruje falešné protokolování.

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

Parametry

services
IServiceCollection

Kolekce služeb.

configure
Action<FakeLogCollectorOptions>

Možnosti konfigurace protokolování.

Návraty

Hodnota .services

Platí pro