ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
サービス エンリッチャーのインスタンスを IServiceCollectionに追加します。
オーバーロード
| 名前 | 説明 |
|---|---|
| AddServiceLogEnricher(IServiceCollection) |
古い.
サービス エンリッチャーのインスタンスを IServiceCollectionに追加します。 |
| AddServiceLogEnricher(IServiceCollection, IConfigurationSection) |
古い.
サービス エンリッチャーのインスタンスを IServiceCollectionに追加します。 |
| AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>) |
古い.
サービス エンリッチャーのインスタンスを IServiceCollectionに追加します。 |
AddServiceLogEnricher(IServiceCollection)
注意事項
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 の値。
- 属性
例外
services は nullです。
適用対象
AddServiceLogEnricher(IServiceCollection, IConfigurationSection)
注意事項
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>)
注意事項
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 。
- configure
- Action<ApplicationLogEnricherOptions>
ApplicationLogEnricherOptions構成デリゲート。
返品
services の値。
- 属性
例外
引数のいずれかが null。