Taal

ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher Methode

Definitie

Overloads

Name Description
AddServiceLogEnricher(IServiceCollection)
Verouderd.

Voegt een exemplaar van de serviceverrijker toe aan de IServiceCollection.

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)
Verouderd.

Voegt een exemplaar van de serviceverrijker toe aan de IServiceCollection.

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)
Verouderd.

Voegt een exemplaar van de serviceverrijker toe aan de IServiceCollection.

AddServiceLogEnricher(IServiceCollection)

Bron:
ApplicationEnricherServiceCollectionExtensions.cs
Bron:
ApplicationEnricherServiceCollectionExtensions.cs

Let op

This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.

Voegt een exemplaar van de serviceverrijker toe aan de IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddServiceLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
[System.Obsolete("This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.", DiagnosticId="EXTOBS0002", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
[<System.Obsolete("This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.", DiagnosticId="EXTOBS0002", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
static member AddServiceLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
static member AddServiceLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddServiceLogEnricher (services As IServiceCollection) As IServiceCollection

Parameters

services
IServiceCollection

Hiermee IServiceCollection voegt u de serviceverrijker toe.

Retouren

De waarde van services.

Kenmerken

Uitzonderingen

services is null.

Van toepassing op

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Bron:
ApplicationEnricherServiceCollectionExtensions.cs
Bron:
ApplicationEnricherServiceCollectionExtensions.cs

Let op

This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.

Voegt een exemplaar van de serviceverrijker toe aan de IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddServiceLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
[System.Obsolete("This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.", DiagnosticId="EXTOBS0002", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher(this 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);
[<System.Obsolete("This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.", DiagnosticId="EXTOBS0002", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
static member AddServiceLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
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

Hiermee IServiceCollection voegt u de serviceverrijker toe.

section
IConfigurationSection

Het IConfigurationSection te gebruiken voor het ApplicationLogEnricherOptions configureren in de serviceverrijker.

Retouren

De waarde van services.

Kenmerken

Uitzonderingen

Een van de argumenten is null.

Van toepassing op

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Bron:
ApplicationEnricherServiceCollectionExtensions.cs
Bron:
ApplicationEnricherServiceCollectionExtensions.cs

Let op

This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.

Voegt een exemplaar van de serviceverrijker toe aan de IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddServiceLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::Enrichment::ApplicationLogEnricherOptions ^> ^ configure);
[System.Obsolete("This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.", DiagnosticId="EXTOBS0002", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher(this 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);
[<System.Obsolete("This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.", DiagnosticId="EXTOBS0002", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
static member AddServiceLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.Enrichment.ApplicationLogEnricherOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
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

Hiermee IServiceCollection voegt u de serviceverrijker toe.

configure
Action<ApplicationLogEnricherOptions>

De gedelegeerde voor de ApplicationLogEnricherOptions configuratie.

Retouren

De waarde van services.

Kenmerken

Uitzonderingen

Een van de argumenten is null.

Van toepassing op