IHttpClientLogEnricher.Enrich メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
HTTP クライアント要求ログをエンリッチします。
public:
void Enrich(Microsoft::Extensions::Diagnostics::Enrichment::IEnrichmentTagCollector ^ collector, System::Net::Http::HttpRequestMessage ^ request, System::Net::Http::HttpResponseMessage ^ response, Exception ^ exception);
public void Enrich(Microsoft.Extensions.Diagnostics.Enrichment.IEnrichmentTagCollector collector, System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpResponseMessage? response, Exception? exception);
abstract member Enrich : Microsoft.Extensions.Diagnostics.Enrichment.IEnrichmentTagCollector * System.Net.Http.HttpRequestMessage * System.Net.Http.HttpResponseMessage * Exception -> unit
Public Sub Enrich (collector As IEnrichmentTagCollector, request As HttpRequestMessage, response As HttpResponseMessage, exception As Exception)
パラメーター
- collector
- IEnrichmentTagCollector
タグを追加するタグ コレクター。
- request
- HttpRequestMessage
HttpRequestMessage 送信 HTTP 要求に関連付けられている オブジェクト。
- response
- HttpResponseMessage
HttpResponseMessage 送信 HTTP 要求に関連付けられている オブジェクト。
注釈
HTTP 要求の結果によっては、 パラメーターと exception パラメーターが response であるnull場合があることに注意してください。