ProcessEnricherServiceCollectionExtensions.AddProcessLogEnricher 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
AddProcessLogEnricher(IServiceCollection) |
Menambahkan instans pengaya proses ke IServiceCollection. |
AddProcessLogEnricher(IServiceCollection, IConfigurationSection) |
Menambahkan instans pengaya host ke IServiceCollection. |
AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>) |
Menambahkan instans pengaya proses ke IServiceCollection. |
AddProcessLogEnricher(IServiceCollection)
Menambahkan instans pengaya proses ke IServiceCollection.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddProcessLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddProcessLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddProcessLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddProcessLogEnricher (services As IServiceCollection) As IServiceCollection
Parameter
- services
- IServiceCollection
IServiceCollection untuk menambahkan pengaya proses.
Mengembalikan
Nilai dari services
.
Pengecualian
services
adalah null
.
Berlaku untuk
AddProcessLogEnricher(IServiceCollection, IConfigurationSection)
Menambahkan instans pengaya host ke IServiceCollection.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddProcessLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddProcessLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddProcessLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddProcessLogEnricher (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection
Parameter
- services
- IServiceCollection
IServiceCollection untuk menambahkan pengaya proses.
- section
- IConfigurationSection
yang IConfigurationSection digunakan untuk mengonfigurasi ProcessLogEnricherOptions dalam pengaya proses.
Mengembalikan
Nilai dari services
.
Pengecualian
Salah satu argumennya adalah null
.
Berlaku untuk
AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>)
Menambahkan instans pengaya proses ke IServiceCollection.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddProcessLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::Enrichment::ProcessLogEnricherOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddProcessLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.Enrichment.ProcessLogEnricherOptions> configure);
static member AddProcessLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.Enrichment.ProcessLogEnricherOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddProcessLogEnricher (services As IServiceCollection, configure As Action(Of ProcessLogEnricherOptions)) As IServiceCollection
Parameter
- services
- IServiceCollection
IServiceCollection untuk menambahkan pengaya proses.
- configure
- Action<ProcessLogEnricherOptions>
Delegasi ProcessLogEnricherOptions konfigurasi.
Mengembalikan
Nilai dari services
.
Pengecualian
Salah satu argumennya adalah null
.