ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| AddServiceLogEnricher(IServiceCollection) |
Veraltet.
Fügt der Dienstreicherung eine Instanz des Diensts hinzu IServiceCollection. |
| AddServiceLogEnricher(IServiceCollection, IConfigurationSection) |
Veraltet.
Fügt der Dienstreicherung eine Instanz des Diensts hinzu IServiceCollection. |
| AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>) |
Veraltet.
Fügt der Dienstreicherung eine Instanz des Diensts hinzu IServiceCollection. |
AddServiceLogEnricher(IServiceCollection)
Achtung
This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.
Fügt der Dienstreicherung eine Instanz des Diensts hinzu 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
Parameter
- services
- IServiceCollection
Der IServiceCollection , dem der Dienst anreichert werden soll.
Gibt zurück
Der Wert von services.
- Attribute
Ausnahmen
services ist null.
Gilt für:
AddServiceLogEnricher(IServiceCollection, IConfigurationSection)
Achtung
This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.
Fügt der Dienstreicherung eine Instanz des Diensts hinzu 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
Parameter
- services
- IServiceCollection
Der IServiceCollection , dem der Dienst anreichert werden soll.
- section
- IConfigurationSection
Der IConfigurationSection für die Konfiguration ApplicationLogEnricherOptions im Dienst anreicherung zu verwendende Dienst.
Gibt zurück
Der Wert von services.
- Attribute
Ausnahmen
Eines der Argumente ist null.
Gilt für:
AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)
Achtung
This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.
Fügt der Dienstreicherung eine Instanz des Diensts hinzu 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
Parameter
- services
- IServiceCollection
Der IServiceCollection , dem der Dienst anreichert werden soll.
- configure
- Action<ApplicationLogEnricherOptions>
Der ApplicationLogEnricherOptions Konfigurationsdelegat.
Gibt zurück
Der Wert von services.
- Attribute
Ausnahmen
Eines der Argumente ist null.