言語

ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher メソッド

定義

サービス エンリッチャーのインスタンスを IServiceCollectionに追加します。

オーバーロード

名前 説明
AddServiceLogEnricher(IServiceCollection)
古い.

サービス エンリッチャーのインスタンスを IServiceCollectionに追加します。

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)
古い.

サービス エンリッチャーのインスタンスを IServiceCollectionに追加します。

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)
古い.

サービス エンリッチャーのインスタンスを IServiceCollectionに追加します。

AddServiceLogEnricher(IServiceCollection)

ソース:
ApplicationEnricherServiceCollectionExtensions.cs
ソース:
ApplicationEnricherServiceCollectionExtensions.cs
ソース:
ApplicationEnricherServiceCollectionExtensions.cs

注意事項

This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.

サービス エンリッチャーのインスタンスを IServiceCollectionに追加します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddServiceLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
[System.Obsolete("This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.", DiagnosticId="EXTOBS0002", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
[<System.Obsolete("This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.", DiagnosticId="EXTOBS0002", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
static member AddServiceLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
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
ソース:
ApplicationEnricherServiceCollectionExtensions.cs
ソース:
ApplicationEnricherServiceCollectionExtensions.cs

注意事項

This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.

サービス エンリッチャーのインスタンスを IServiceCollectionに追加します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddServiceLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
[System.Obsolete("This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.", DiagnosticId="EXTOBS0002", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher(this 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);
[<System.Obsolete("This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.", DiagnosticId="EXTOBS0002", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
static member AddServiceLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
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

section
IConfigurationSection

サービス エンリッチャーでIConfigurationSectionを構成するために使用するApplicationLogEnricherOptions

返品

services の値。

属性

例外

引数のいずれかが null

適用対象

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

ソース:
ApplicationEnricherServiceCollectionExtensions.cs
ソース:
ApplicationEnricherServiceCollectionExtensions.cs
ソース:
ApplicationEnricherServiceCollectionExtensions.cs

注意事項

This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.

サービス エンリッチャーのインスタンスを IServiceCollectionに追加します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddServiceLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::Enrichment::ApplicationLogEnricherOptions ^> ^ configure);
[System.Obsolete("This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.", DiagnosticId="EXTOBS0002", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher(this 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);
[<System.Obsolete("This API is obsolete and will be removed in a future version. Instead of the AddServiceLogEnricher() methods, consider using the respective AddApplicationLogEnricher() methods.", DiagnosticId="EXTOBS0002", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
static member AddServiceLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.Enrichment.ApplicationLogEnricherOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
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

適用対象