Ejemplo n.º 1
0
 internal void SetCompleted(bool synch, HttpWebResponse response)
 {
     this.synch = synch;
     this.response = response;
     exc = null;
     lock (locker)
     {
         isCompleted = true;
         if (handle != null)
             handle.Set();
     }
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 internal void Reset()
 {
     callbackDone = false;
     exc = null;
     response = null;
     writeStream = null;
     exc = null;
     lock (locker)
     {
         isCompleted = false;
         if (handle != null)
             handle.Reset();
     }
 }