Condividi tramite


FakeLoggerServiceCollectionExtensions.AddFakeLogging Metodo

Definizione

Overload

AddFakeLogging(IServiceCollection)

Configura la registrazione fittizia con le opzioni predefinite.

AddFakeLogging(IServiceCollection, IConfigurationSection)

Configura la registrazione fittizia.

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Configura la registrazione fittizia.

AddFakeLogging(IServiceCollection)

Origine:
FakeLoggerServiceCollectionExtensions.cs
Origine:
FakeLoggerServiceCollectionExtensions.cs
Origine:
FakeLoggerServiceCollectionExtensions.cs

Configura la registrazione fittizia con le opzioni predefinite.

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

Parametri

services
IServiceCollection

Raccolta di servizi.

Restituisce

Valore di services.

Si applica a

AddFakeLogging(IServiceCollection, IConfigurationSection)

Origine:
FakeLoggerServiceCollectionExtensions.cs
Origine:
FakeLoggerServiceCollectionExtensions.cs
Origine:
FakeLoggerServiceCollectionExtensions.cs

Configura la registrazione fittizia.

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

Parametri

services
IServiceCollection

Raccolta di servizi.

section
IConfigurationSection

Sezione di configurazione che contiene FakeLogCollectorOptions.

Restituisce

Valore di services.

Si applica a

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Origine:
FakeLoggerServiceCollectionExtensions.cs
Origine:
FakeLoggerServiceCollectionExtensions.cs
Origine:
FakeLoggerServiceCollectionExtensions.cs

Configura la registrazione fittizia.

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

Parametri

services
IServiceCollection

Raccolta di servizi.

configure
Action<FakeLogCollectorOptions>

Opzioni di configurazione della registrazione.

Restituisce

Valore di services.

Si applica a