共用方式為


IHttpClientLogger.LogRequestStop 方法

定義

收到 HTTP 回應之後的記錄。

public:
 void LogRequestStop(System::Object ^ context, System::Net::Http::HttpRequestMessage ^ request, System::Net::Http::HttpResponseMessage ^ response, TimeSpan elapsed);
public void LogRequestStop (object? context, System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpResponseMessage response, TimeSpan elapsed);
abstract member LogRequestStop : obj * System.Net.Http.HttpRequestMessage * System.Net.Http.HttpResponseMessage * TimeSpan -> unit
Public Sub LogRequestStop (context As Object, request As HttpRequestMessage, response As HttpResponseMessage, elapsed As TimeSpan)

參數

context
Object

先前由 LogRequestStart(HttpRequestMessage)傳回的內容物件。

request
HttpRequestMessage

已傳送的 HTTP 要求訊息。

response
HttpResponseMessage

收到的 HTTP 回應消息。

elapsed
TimeSpan

呼叫 LogRequestStart(HttpRequestMessage)之後經過的時間。

適用於