Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FinishSend()

static void System.Net.Http.HttpClient.FinishSend ( CancellationTokenSource cts,
bool disposeCts,
bool telemetryStarted,
bool responseContentTelemetryStarted )
inlinestaticprivate

Definition at line 665 of file HttpClient.cs.

666 {
667 if (HttpTelemetry.Log.IsEnabled() && telemetryStarted)
668 {
669 if (responseContentTelemetryStarted)
670 {
671 HttpTelemetry.Log.ResponseContentStop();
672 }
673 HttpTelemetry.Log.RequestStop();
674 }
675 if (disposeCts)
676 {
677 cts.Dispose();
678 }
679 }

References System.Threading.CancellationTokenSource.Dispose(), and System.Net.Http.HttpTelemetry.Log.

Referenced by System.Net.Http.HttpClient.GetByteArrayAsyncCore(), System.Net.Http.HttpClient.GetStreamAsyncCore(), System.Net.Http.HttpClient.GetStringAsyncCore(), System.Net.Http.HttpClient.Send(), and System.Net.Http.HttpClient.SendAsync().