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

◆ LogExceptions()

void System.Net.Http.HttpConnectionBase.LogExceptions ( Task task)
inlinepackageinherited

Definition at line 100 of file HttpConnectionBase.cs.

101 {
102 if (task.IsCompleted)
103 {
104 if (task.IsFaulted)
105 {
106 LogFaulted(this, task);
107 }
108 }
109 else
110 {
111 task.ContinueWith(delegate(Task t, object state)
112 {
113 LogFaulted((HttpConnectionBase)state, t);
114 }, this, CancellationToken.None, TaskContinuationOptions.OnlyOnFaulted | TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default);
115 }
116 static void LogFaulted(HttpConnectionBase connection, Task task)
117 {
118 Exception innerException = task.Exception.InnerException;
119 if (System.Net.NetEventSource.Log.IsEnabled())
120 {
121 connection.Trace($"Exception from asynchronous processing: {innerException}", "LogExceptions");
122 }
123 }
124 }
static readonly System.Net.NetEventSource Log

References System.Exception.Exception(), System.Threading.Tasks.TaskScheduler.Default, System.Net.NetEventSource.Log, System.Threading.CancellationToken.None, System.state, System.task, and System.Net.Http.HttpConnectionBase.Trace().

Referenced by System.Net.Http.Http2Connection.Http2StreamWindowManager.AdjustWindowDynamic(), System.Net.Http.Http2Connection.Http2StreamWindowManager.AjdustWindowStatic(), System.Net.Http.Http2Connection.ExtendWindow(), System.Net.Http.Http2Connection.RttEstimator.OnDataOrHeadersReceived(), System.Net.Http.Http2Connection.ProcessPingFrame(), System.Net.Http.Http2Connection.ProcessSettingsFrame(), System.Net.Http.Http3RequestStream.SendAsync(), System.Net.Http.Http2Connection.SendAsync(), System.Net.Http.HttpConnection.SendAsyncCore(), System.Net.Http.Http2Connection.Http2Stream.SendRequestBodyAsync(), and System.Net.Http.Http2Connection.Http2Stream.SendReset().