Bagikan melalui


IHttpClientLogger.LogRequestStop Metode

Definisi

Log setelah menerima respons 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)

Parameter

context
Object

Objek konteks yang sebelumnya dikembalikan oleh LogRequestStart(HttpRequestMessage).

request
HttpRequestMessage

Pesan permintaan HTTP yang dikirim.

response
HttpResponseMessage

Pesan respons HTTP yang diterima.

elapsed
TimeSpan

Waktu berlalu sejak memanggil LogRequestStart(HttpRequestMessage).

Berlaku untuk