ProcessEnricherServiceCollectionExtensions.AddProcessLogEnricher Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
AddProcessLogEnricher(IServiceCollection) |
Dodaje wystąpienie wzbogacacza procesu do obiektu IServiceCollection. |
AddProcessLogEnricher(IServiceCollection, IConfigurationSection) |
Dodaje wystąpienie wzbogacacza hosta do obiektu IServiceCollection. |
AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>) |
Dodaje wystąpienie wzbogacacza procesu do obiektu IServiceCollection. |
AddProcessLogEnricher(IServiceCollection)
Dodaje wystąpienie wzbogacacza procesu do obiektu IServiceCollection.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddProcessLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddProcessLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddProcessLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddProcessLogEnricher (services As IServiceCollection) As IServiceCollection
Parametry
- services
- IServiceCollection
Element IServiceCollection do dodawania wzbogacacza procesu.
Zwraca
Wartość .services
Wyjątki
services
to null
.
Dotyczy
AddProcessLogEnricher(IServiceCollection, IConfigurationSection)
Dodaje wystąpienie wzbogacacza hosta do obiektu IServiceCollection.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddProcessLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddProcessLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddProcessLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddProcessLogEnricher (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection
Parametry
- services
- IServiceCollection
Element IServiceCollection do dodawania wzbogacacza procesu.
- section
- IConfigurationSection
Element IConfigurationSection do użycia do konfigurowania ProcessLogEnricherOptions w wzbogacaniu procesu.
Zwraca
Wartość .services
Wyjątki
Dowolny z argumentów to null
.
Dotyczy
AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>)
Dodaje wystąpienie wzbogacacza procesu do obiektu IServiceCollection.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddProcessLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::Enrichment::ProcessLogEnricherOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddProcessLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.Enrichment.ProcessLogEnricherOptions> configure);
static member AddProcessLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.Enrichment.ProcessLogEnricherOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddProcessLogEnricher (services As IServiceCollection, configure As Action(Of ProcessLogEnricherOptions)) As IServiceCollection
Parametry
- services
- IServiceCollection
Element IServiceCollection do dodawania wzbogacacza procesu.
- configure
- Action<ProcessLogEnricherOptions>
Delegat ProcessLogEnricherOptions konfiguracji.
Zwraca
Wartość .services
Wyjątki
Dowolny z argumentów to null
.