ProcessEnricherServiceCollectionExtensions.AddProcessLogEnricher Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddProcessLogEnricher(IServiceCollection) |
Adds an instance of the process enricher to the IServiceCollection. |
AddProcessLogEnricher(IServiceCollection, IConfigurationSection) |
Adds an instance of the host enricher to the IServiceCollection. |
AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>) |
Adds an instance of the process enricher to the IServiceCollection. |
AddProcessLogEnricher(IServiceCollection)
Adds an instance of the process enricher to the 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
Parameters
- services
- IServiceCollection
The IServiceCollection to add the process enricher to.
Returns
The value of services
.
Exceptions
services
is null
.
Applies to
AddProcessLogEnricher(IServiceCollection, IConfigurationSection)
Adds an instance of the host enricher to the 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
Parameters
- services
- IServiceCollection
The IServiceCollection to add the process enricher to.
- section
- IConfigurationSection
The IConfigurationSection to use for configuring ProcessLogEnricherOptions in the process enricher.
Returns
The value of services
.
Exceptions
Any of the arguments is null
.
Applies to
AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>)
Adds an instance of the process enricher to the 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
Parameters
- services
- IServiceCollection
The IServiceCollection to add the process enricher to.
- configure
- Action<ProcessLogEnricherOptions>
The ProcessLogEnricherOptions configuration delegate.
Returns
The value of services
.
Exceptions
Any of the arguments is null
.
Applies to
.NET