Share via


IHttpClientLogger.LogRequestStop Method

Definition

Logs after receiving an HTTP response.

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)

Parameters

context
Object

The context object that was previously returned by LogRequestStart(HttpRequestMessage).

request
HttpRequestMessage

The HTTP request message that was sent.

response
HttpResponseMessage

The HTTP response message that was received.

elapsed
TimeSpan

Time elapsed since calling LogRequestStart(HttpRequestMessage).

Applies to