Bagikan melalui


FakeLoggerServiceCollectionExtensions.AddFakeLogging Metode

Definisi

Overload

AddFakeLogging(IServiceCollection)

Mengonfigurasi pengelogan palsu dengan opsi default.

AddFakeLogging(IServiceCollection, IConfigurationSection)

Mengonfigurasi pengelogan palsu.

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Mengonfigurasi pengelogan palsu.

AddFakeLogging(IServiceCollection)

Sumber:
FakeLoggerServiceCollectionExtensions.cs
Sumber:
FakeLoggerServiceCollectionExtensions.cs
Sumber:
FakeLoggerServiceCollectionExtensions.cs

Mengonfigurasi pengelogan palsu dengan opsi default.

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

Parameter

services
IServiceCollection

Pengumpulan layanan.

Mengembalikan

Nilai dari services.

Berlaku untuk

AddFakeLogging(IServiceCollection, IConfigurationSection)

Sumber:
FakeLoggerServiceCollectionExtensions.cs
Sumber:
FakeLoggerServiceCollectionExtensions.cs
Sumber:
FakeLoggerServiceCollectionExtensions.cs

Mengonfigurasi pengelogan palsu.

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

Parameter

services
IServiceCollection

Pengumpulan layanan.

section
IConfigurationSection

Bagian konfigurasi yang berisi FakeLogCollectorOptions.

Mengembalikan

Nilai dari services.

Berlaku untuk

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Sumber:
FakeLoggerServiceCollectionExtensions.cs
Sumber:
FakeLoggerServiceCollectionExtensions.cs
Sumber:
FakeLoggerServiceCollectionExtensions.cs

Mengonfigurasi pengelogan palsu.

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

Parameter

services
IServiceCollection

Pengumpulan layanan.

configure
Action<FakeLogCollectorOptions>

Opsi konfigurasi pengelogan.

Mengembalikan

Nilai dari services.

Berlaku untuk