FakeLoggerServiceCollectionExtensions.AddFakeLogging Метод

Определение

Перегрузки

AddFakeLogging(IServiceCollection)

Настраивает фиктивное ведение журнала с параметрами по умолчанию.

AddFakeLogging(IServiceCollection, IConfigurationSection)

Настраивает фиктивное ведение журнала.

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Настраивает фиктивное ведение журнала.

AddFakeLogging(IServiceCollection)

Исходный код:
FakeLoggerServiceCollectionExtensions.cs
Исходный код:
FakeLoggerServiceCollectionExtensions.cs
Исходный код:
FakeLoggerServiceCollectionExtensions.cs

Настраивает фиктивное ведение журнала с параметрами по умолчанию.

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

Параметры

services
IServiceCollection

Коллекция служб.

Возвращаемое значение

Значение services.

Применяется к

AddFakeLogging(IServiceCollection, IConfigurationSection)

Исходный код:
FakeLoggerServiceCollectionExtensions.cs
Исходный код:
FakeLoggerServiceCollectionExtensions.cs
Исходный код:
FakeLoggerServiceCollectionExtensions.cs

Настраивает фиктивное ведение журнала.

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

Параметры

services
IServiceCollection

Коллекция служб.

section
IConfigurationSection

Раздел конфигурации, содержащий FakeLogCollectorOptions.

Возвращаемое значение

Значение services.

Применяется к

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Исходный код:
FakeLoggerServiceCollectionExtensions.cs
Исходный код:
FakeLoggerServiceCollectionExtensions.cs
Исходный код:
FakeLoggerServiceCollectionExtensions.cs

Настраивает фиктивное ведение журнала.

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

Параметры

services
IServiceCollection

Коллекция служб.

configure
Action<FakeLogCollectorOptions>

Параметры конфигурации ведения журнала.

Возвращаемое значение

Значение services.

Применяется к