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)以来经过的时间。

适用于