Udostępnij za pośrednictwem


FakeLoggerServiceCollectionExtensions.AddFakeLogging Metoda

Definicja

Przeciążenia

AddFakeLogging(IServiceCollection)

Konfiguruje fałszywe rejestrowanie przy użyciu opcji domyślnych.

AddFakeLogging(IServiceCollection, IConfigurationSection)

Konfiguruje fałszywe rejestrowanie.

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Konfiguruje fałszywe rejestrowanie.

AddFakeLogging(IServiceCollection)

Źródło:
FakeLoggerServiceCollectionExtensions.cs
Źródło:
FakeLoggerServiceCollectionExtensions.cs
Źródło:
FakeLoggerServiceCollectionExtensions.cs

Konfiguruje fałszywe rejestrowanie przy użyciu opcji domyślnych.

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

Kolekcja usług.

Zwraca

Wartość .services

Dotyczy

AddFakeLogging(IServiceCollection, IConfigurationSection)

Źródło:
FakeLoggerServiceCollectionExtensions.cs
Źródło:
FakeLoggerServiceCollectionExtensions.cs
Źródło:
FakeLoggerServiceCollectionExtensions.cs

Konfiguruje fałszywe rejestrowanie.

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

Kolekcja usług.

section
IConfigurationSection

Sekcja konfiguracji zawierająca FakeLogCollectorOptions.

Zwraca

Wartość .services

Dotyczy

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Źródło:
FakeLoggerServiceCollectionExtensions.cs
Źródło:
FakeLoggerServiceCollectionExtensions.cs
Źródło:
FakeLoggerServiceCollectionExtensions.cs

Konfiguruje fałszywe rejestrowanie.

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

Kolekcja usług.

configure
Action<FakeLogCollectorOptions>

Opcje konfiguracji rejestrowania.

Zwraca

Wartość .services

Dotyczy