ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| AddServiceLogEnricher(IServiceCollection) |
Föråldrad.
Lägger till en instans av tjänstberikaren i IServiceCollection. |
| AddServiceLogEnricher(IServiceCollection, IConfigurationSection) |
Föråldrad.
Lägger till en instans av tjänstberikaren i IServiceCollection. |
| AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>) |
Föråldrad.
Lägger till en instans av tjänstberikaren i IServiceCollection. |
AddServiceLogEnricher(IServiceCollection)
Varning
This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.
Lägger till en instans av tjänstberikaren i 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
Parametrar
- services
- IServiceCollection
Att IServiceCollection lägga till tjänstberikaren i.
Returer
Värdet för services.
- Attribut
Undantag
services är null.
Gäller för
AddServiceLogEnricher(IServiceCollection, IConfigurationSection)
Varning
This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.
Lägger till en instans av tjänstberikaren i 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
Parametrar
- services
- IServiceCollection
Att IServiceCollection lägga till tjänstberikaren i.
- section
- IConfigurationSection
Att IConfigurationSection använda för att ApplicationLogEnricherOptions konfigurera i tjänstberikern.
Returer
Värdet för services.
- Attribut
Undantag
Något av argumenten är null.
Gäller för
AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)
Varning
This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.
Lägger till en instans av tjänstberikaren i 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
Parametrar
- services
- IServiceCollection
Att IServiceCollection lägga till tjänstberikaren i.
- configure
- Action<ApplicationLogEnricherOptions>
Konfigurationsdelegaten ApplicationLogEnricherOptions .
Returer
Värdet för services.
- Attribut
Undantag
Något av argumenten är null.