Aracılığıyla paylaş


FakeLoggerServiceCollectionExtensions.AddFakeLogging Yöntem

Tanım

Aşırı Yüklemeler

AddFakeLogging(IServiceCollection)

Varsayılan seçeneklerle sahte günlük kaydı yapılandırılır.

AddFakeLogging(IServiceCollection, IConfigurationSection)

Sahte günlük kaydı yapılandırılır.

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Sahte günlük kaydı yapılandırılır.

AddFakeLogging(IServiceCollection)

Kaynak:
FakeLoggerServiceCollectionExtensions.cs
Kaynak:
FakeLoggerServiceCollectionExtensions.cs
Kaynak:
FakeLoggerServiceCollectionExtensions.cs

Varsayılan seçeneklerle sahte günlük kaydı yapılandırılır.

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

Parametreler

services
IServiceCollection

Hizmet koleksiyonu.

Döndürülenler

değeridir services.

Şunlara uygulanır

AddFakeLogging(IServiceCollection, IConfigurationSection)

Kaynak:
FakeLoggerServiceCollectionExtensions.cs
Kaynak:
FakeLoggerServiceCollectionExtensions.cs
Kaynak:
FakeLoggerServiceCollectionExtensions.cs

Sahte günlük kaydı yapılandırılır.

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

Parametreler

services
IServiceCollection

Hizmet koleksiyonu.

section
IConfigurationSection

öğesini içeren FakeLogCollectorOptionsyapılandırma bölümü.

Döndürülenler

değeridir services.

Şunlara uygulanır

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Kaynak:
FakeLoggerServiceCollectionExtensions.cs
Kaynak:
FakeLoggerServiceCollectionExtensions.cs
Kaynak:
FakeLoggerServiceCollectionExtensions.cs

Sahte günlük kaydı yapılandırılır.

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

Parametreler

services
IServiceCollection

Hizmet koleksiyonu.

configure
Action<FakeLogCollectorOptions>

Günlük yapılandırma seçenekleri.

Döndürülenler

değeridir services.

Şunlara uygulanır