Definition at line 361 of file HttpResponseStream.cs.
362 {
363 if (!(
asyncResult is HttpResponseStreamAsyncResult httpResponseStreamAsyncResult) || httpResponseStreamAsyncResult.AsyncObject !=
this)
364 {
366 }
367 if (httpResponseStreamAsyncResult.EndCalled)
368 {
370 }
371 httpResponseStreamAsyncResult.EndCalled = true;
372 object obj = httpResponseStreamAsyncResult.InternalWaitForCompletion();
373 if (
obj is Exception ex)
374 {
376 {
378 }
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
static string Format(string resourceFormat, object p1)
static string net_io_invalidasyncresult
@ InvalidOperationException
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().