इसके माध्यम से साझा किया गया


ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher Method

Definition

Overloads

AddServiceLogEnricher(IServiceCollection)

Adds an instance of the service enricher to the IServiceCollection.

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Adds an instance of the service enricher to the IServiceCollection.

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Adds an instance of the service enricher to the IServiceCollection.

AddServiceLogEnricher(IServiceCollection)

Source:
ApplicationEnricherServiceCollectionExtensions.cs
Source:
ApplicationEnricherServiceCollectionExtensions.cs

Adds an instance of the service enricher to the 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

Parameters

services
IServiceCollection

The IServiceCollection to add the service enricher to.

Returns

The value of services.

Exceptions

services is null.

Applies to

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Source:
ApplicationEnricherServiceCollectionExtensions.cs
Source:
ApplicationEnricherServiceCollectionExtensions.cs

Adds an instance of the service enricher to the 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

Parameters

services
IServiceCollection

The IServiceCollection to add the service enricher to.

section
IConfigurationSection

The IConfigurationSection to use for configuring ApplicationLogEnricherOptions in the service enricher.

Returns

The value of services.

Exceptions

Any of the arguments is null.

Applies to

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Source:
ApplicationEnricherServiceCollectionExtensions.cs
Source:
ApplicationEnricherServiceCollectionExtensions.cs

Adds an instance of the service enricher to the 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

Parameters

services
IServiceCollection

The IServiceCollection to add the service enricher to.

configure
Action<ApplicationLogEnricherOptions>

The ApplicationLogEnricherOptions configuration delegate.

Returns

The value of services.

Exceptions

Any of the arguments is null.

Applies to