次の方法で共有


IHttpClientLogEnricher.Enrich メソッド

定義

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 要求に関連付けられている オブジェクト。

exception
Exception

送信 HTTP 要求処理内でスローされた省略可能 Exception

注釈

HTTP 要求の結果によっては、 パラメーターと exception パラメーターが response であるnull場合があることに注意してください。

適用対象