Sdílet prostřednictvím


ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher Metoda

Definice

Přetížení

AddServiceLogEnricher(IServiceCollection)

Přidá instanci zbohatitele služby do .IServiceCollection

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Přidá instanci zbohatitele služby do .IServiceCollection

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Přidá instanci zbohatitele služby do .IServiceCollection

AddServiceLogEnricher(IServiceCollection)

Zdroj:
ApplicationEnricherServiceCollectionExtensions.cs
Zdroj:
ApplicationEnricherServiceCollectionExtensions.cs

Přidá instanci zbohatitele služby do .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

Parametry

services
IServiceCollection

Chcete-li IServiceCollection přidat rozšíření služby do.

Návraty

Hodnota .services

Výjimky

services je null.

Platí pro

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Zdroj:
ApplicationEnricherServiceCollectionExtensions.cs
Zdroj:
ApplicationEnricherServiceCollectionExtensions.cs

Přidá instanci zbohatitele služby do .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

Parametry

services
IServiceCollection

Chcete-li IServiceCollection přidat rozšíření služby do.

section
IConfigurationSection

Slouží IConfigurationSection ke konfiguraci ApplicationLogEnricherOptions v nástroji pro rozšiřování služby.

Návraty

Hodnota .services

Výjimky

Libovolný z argumentů je null.

Platí pro

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Zdroj:
ApplicationEnricherServiceCollectionExtensions.cs
Zdroj:
ApplicationEnricherServiceCollectionExtensions.cs

Přidá instanci zbohatitele služby do .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

Parametry

services
IServiceCollection

Chcete-li IServiceCollection přidat rozšíření služby do.

Návraty

Hodnota .services

Výjimky

Libovolný z argumentů je null.

Platí pro