ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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)
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
services
adalah null
.
Berlaku untuk
AddServiceLogEnricher(IServiceCollection, IConfigurationSection)
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>)
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.
- configure
- Action<ApplicationLogEnricherOptions>
Delegasi ApplicationLogEnricherOptions konfigurasi.
Mengembalikan
Nilai dari services
.
Pengecualian
Salah satu argumennya adalah null
.