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

◆ EndWriteCore()

void System.Net.HttpResponseStream.EndWriteCore ( IAsyncResult asyncResult)
inlineprivate

Definition at line 361 of file HttpResponseStream.cs.

362 {
363 if (!(asyncResult is HttpResponseStreamAsyncResult httpResponseStreamAsyncResult) || httpResponseStreamAsyncResult.AsyncObject != this)
364 {
365 throw new ArgumentException(System.SR.net_io_invalidasyncresult, "asyncResult");
366 }
367 if (httpResponseStreamAsyncResult.EndCalled)
368 {
370 }
371 httpResponseStreamAsyncResult.EndCalled = true;
372 object obj = httpResponseStreamAsyncResult.InternalWaitForCompletion();
373 if (obj is Exception ex)
374 {
375 if (System.Net.NetEventSource.Log.IsEnabled())
376 {
377 System.Net.NetEventSource.Error(this, "Rethrowing exception:" + ex, "EndWriteCore");
378 }
379 _closed = true;
382 }
383 }
readonly HttpListenerContext _httpContext
static readonly System.Net.NetEventSource Log
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)
static string net_io_invalidendcall
Definition SR.cs:22
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_io_invalidasyncresult
Definition SR.cs:20
Definition SR.cs:7

References System.Net.HttpResponseStream._closed, System.Net.HttpResponseStream._httpContext, System.Net.HttpListenerContext.Abort(), System.asyncResult, System.Net.NetEventSource.Error(), System.SR.Format(), System.Net.NetEventSource.Log, System.SR.net_io_invalidasyncresult, System.SR.net_io_invalidendcall, System.obj, and System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw().

Referenced by System.Net.HttpResponseStream.EndWrite().