internal void SetCompleted(bool synch, HttpWebResponse response) { this.synch = synch; this.response = response; exc = null; lock (locker) { isCompleted = true; if (handle != null) handle.Set(); } }
internal static async Task<HttpWebResponse> CreateAsync(Uri uri, string method, WebConnectionData data, CookieContainer container) { var response = new HttpWebResponse(uri, method, data, container); if (null != container) await response.FillCookiesAsync().ConfigureAwait(false); return response; }
internal void Reset() { callbackDone = false; exc = null; response = null; writeStream = null; exc = null; lock (locker) { isCompleted = false; if (handle != null) handle.Reset(); } }