Bagikan melalui


ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher Metode

Definisi

Overload

AddServiceLogEnricher(IServiceCollection)

Menambahkan instans pengaya layanan ke IServiceCollection.

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Menambahkan instans pengaya layanan ke IServiceCollection.

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Menambahkan instans pengaya layanan ke IServiceCollection.

AddServiceLogEnricher(IServiceCollection)

Sumber:
ApplicationEnricherServiceCollectionExtensions.cs

Menambahkan instans pengaya layanan ke 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

Parameter

services
IServiceCollection

IServiceCollection untuk menambahkan pengaya layanan.

Mengembalikan

Nilai dari services.

Pengecualian

servicesadalah null.

Berlaku untuk

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Sumber:
ApplicationEnricherServiceCollectionExtensions.cs

Menambahkan instans pengaya layanan ke 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

Parameter

services
IServiceCollection

IServiceCollection untuk menambahkan pengaya layanan.

section
IConfigurationSection

yang IConfigurationSection digunakan untuk mengonfigurasi ApplicationLogEnricherOptions dalam pengaya layanan.

Mengembalikan

Nilai dari services.

Pengecualian

Salah satu argumennya adalah null.

Berlaku untuk

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Sumber:
ApplicationEnricherServiceCollectionExtensions.cs

Menambahkan instans pengaya layanan ke 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

Parameter

services
IServiceCollection

IServiceCollection untuk menambahkan pengaya layanan.

Mengembalikan

Nilai dari services.

Pengecualian

Salah satu argumennya adalah null.

Berlaku untuk