private void WantBodyCallback(IAsyncResult ar)
{
try
{
this.DataConnection.EndRead(ar);
}
catch (ConnectionClosedException)
{
Done();
return;
}
catch (SocketException)
{
Done();
return;
}
catch (ObjectDisposedException)
{
Done();
return;
}
this.fContext.CurrentRequest.ContentBytes = (Byte[])ar.AsyncState;
try
{
this.fOwner.TriggerHttpRequest(new AsyncHttpRequestEventArgs(this.DataConnection, this.fContext));
}
catch (Exception ex)
{
this.SendInvalidRequest(ex);
}
}
#endregion