public SendAsyncResult(HttpOutput httpOutput, HttpResponseMessage httpResponseMessage, bool suppressEntityBody, TimeSpan timeout, AsyncCallback callback, object state) : base(callback, state) { this.httpOutput = httpOutput; this.httpResponseMessage = httpResponseMessage; this.suppressEntityBody = suppressEntityBody; if (suppressEntityBody) { if (httpOutput.isRequest) { httpOutput.SetContentLength(0); this.httpOutput.TraceSend(); this.httpOutput.LogMessage(); base.Complete(true); return; } } this.timeoutHelper = new TimeoutHelper(timeout); Send(); }