RemObjects.InternetPack.Http.AsyncHttpWorker.WantBodyCallback C# (CSharp) Method

WantBodyCallback() private method

private WantBodyCallback ( IAsyncResult ar ) : void
ar IAsyncResult
return void
		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