다음을 통해 공유


FakeLoggerServiceCollectionExtensions.AddFakeLogging 메서드

정의

오버로드

AddFakeLogging(IServiceCollection)

기본 옵션을 사용하여 가짜 로깅을 구성합니다.

AddFakeLogging(IServiceCollection, IConfigurationSection)

가짜 로깅을 구성합니다.

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

가짜 로깅을 구성합니다.

AddFakeLogging(IServiceCollection)

Source:
FakeLoggerServiceCollectionExtensions.cs
Source:
FakeLoggerServiceCollectionExtensions.cs
Source:
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)

Source:
FakeLoggerServiceCollectionExtensions.cs
Source:
FakeLoggerServiceCollectionExtensions.cs
Source:
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>)

Source:
FakeLoggerServiceCollectionExtensions.cs
Source:
FakeLoggerServiceCollectionExtensions.cs
Source:
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의 값

적용 대상