ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher 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
AddServiceLogEnricher(IServiceCollection) |
Aggiunge un'istanza del servizio enricher all'oggetto IServiceCollection. |
AddServiceLogEnricher(IServiceCollection, IConfigurationSection) |
Aggiunge un'istanza del servizio enricher all'oggetto IServiceCollection. |
AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>) |
Aggiunge un'istanza del servizio enricher all'oggetto IServiceCollection. |
AddServiceLogEnricher(IServiceCollection)
Aggiunge un'istanza del servizio enricher all'oggetto IServiceCollection.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddServiceLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddServiceLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddServiceLogEnricher (services As IServiceCollection) As IServiceCollection
Parametri
- services
- IServiceCollection
Oggetto IServiceCollection a cui aggiungere l'arricchimento del servizio.
Restituisce
Valore di services
.
Eccezioni
services
è null
.
Si applica a
AddServiceLogEnricher(IServiceCollection, IConfigurationSection)
Aggiunge un'istanza del servizio enricher all'oggetto IServiceCollection.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddServiceLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddServiceLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddServiceLogEnricher (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection
Parametri
- services
- IServiceCollection
Oggetto IServiceCollection a cui aggiungere l'arricchimento del servizio.
- section
- IConfigurationSection
Oggetto IConfigurationSection da usare per la configurazione ApplicationLogEnricherOptions nell'arricchimento del servizio.
Restituisce
Valore di services
.
Eccezioni
Qualsiasi argomento è null
.
Si applica a
AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)
Aggiunge un'istanza del servizio enricher all'oggetto IServiceCollection.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddServiceLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::Enrichment::ApplicationLogEnricherOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.Enrichment.ApplicationLogEnricherOptions> configure);
static member AddServiceLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.Enrichment.ApplicationLogEnricherOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddServiceLogEnricher (services As IServiceCollection, configure As Action(Of ApplicationLogEnricherOptions)) As IServiceCollection
Parametri
- services
- IServiceCollection
Oggetto IServiceCollection a cui aggiungere l'arricchimento del servizio.
- configure
- Action<ApplicationLogEnricherOptions>
Delegato di configurazione di ApplicationLogEnricherOptions.
Restituisce
Valore di services
.
Eccezioni
Qualsiasi argomento è null
.