共用方式為


ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher 方法

定義

多載

AddServiceLogEnricher(IServiceCollection)

將服務擴充器的實體加入至 IServiceCollection

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

將服務擴充器的實體加入至 IServiceCollection

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

將服務擴充器的實體加入至 IServiceCollection

AddServiceLogEnricher(IServiceCollection)

來源:
ApplicationEnricherServiceCollectionExtensions.cs

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

參數

services
IServiceCollection

IServiceCollection 新增服務擴充器的 。

傳回

services 的值。

例外狀況

servicesnull

適用於

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

來源:
ApplicationEnricherServiceCollectionExtensions.cs

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

參數

services
IServiceCollection

IServiceCollection 新增服務擴充器的 。

傳回

services 的值。

例外狀況

任何自變數都是 null

適用於

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

來源:
ApplicationEnricherServiceCollectionExtensions.cs

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

參數

services
IServiceCollection

IServiceCollection 新增服務擴充器的 。

傳回

services 的值。

例外狀況

任何自變數都是 null

適用於