FakeLoggerServiceCollectionExtensions.AddFakeLogging Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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)
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)
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>)
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
.