共用方式為


ProcessEnricherServiceCollectionExtensions.AddProcessLogEnricher 方法

定義

多載

AddProcessLogEnricher(IServiceCollection)

將行程擴充器的實體加入至 IServiceCollection

AddProcessLogEnricher(IServiceCollection, IConfigurationSection)

將主機擴充器的實體加入至 IServiceCollection

AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>)

將行程擴充器的實體加入至 IServiceCollection

AddProcessLogEnricher(IServiceCollection)

來源:
ProcessEnricherServiceCollectionExtensions.cs
來源:
ProcessEnricherServiceCollectionExtensions.cs

將行程擴充器的實體加入至 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

參數

services
IServiceCollection

IServiceCollection要加入行程擴充器的 。

傳回

services 的值。

例外狀況

servicesnull

適用於

AddProcessLogEnricher(IServiceCollection, IConfigurationSection)

來源:
ProcessEnricherServiceCollectionExtensions.cs
來源:
ProcessEnricherServiceCollectionExtensions.cs

將主機擴充器的實體加入至 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

參數

services
IServiceCollection

IServiceCollection要加入行程擴充器的 。

section
IConfigurationSection

IConfigurationSection要在ProcessLogEnricherOptions行程擴充器中設定的 。

傳回

services 的值。

例外狀況

任何自變數都是 null

適用於

AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>)

來源:
ProcessEnricherServiceCollectionExtensions.cs
來源:
ProcessEnricherServiceCollectionExtensions.cs

將行程擴充器的實體加入至 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

參數

services
IServiceCollection

IServiceCollection要加入行程擴充器的 。

傳回

services 的值。

例外狀況

任何自變數都是 null

適用於