FakeLoggerServiceCollectionExtensions.AddFakeLogging Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
AddFakeLogging(IServiceCollection) |
Nakonfiguruje falešné protokolování s výchozími možnostmi. |
AddFakeLogging(IServiceCollection, IConfigurationSection) |
Konfiguruje falešné protokolování. |
AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>) |
Konfiguruje falešné protokolování. |
AddFakeLogging(IServiceCollection)
Nakonfiguruje falešné protokolování s výchozími možnostmi.
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
Parametry
- services
- IServiceCollection
Kolekce služeb.
Návraty
Hodnota .services
Platí pro
AddFakeLogging(IServiceCollection, IConfigurationSection)
Konfiguruje falešné protokolování.
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
Parametry
- services
- IServiceCollection
Kolekce služeb.
- section
- IConfigurationSection
Oddíl konfigurace, který obsahuje FakeLogCollectorOptions.
Návraty
Hodnota .services
Platí pro
AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)
Konfiguruje falešné protokolování.
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
Parametry
- services
- IServiceCollection
Kolekce služeb.
- configure
- Action<FakeLogCollectorOptions>
Možnosti konfigurace protokolování.
Návraty
Hodnota .services