Exemplo 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();
     }
 }
Exemplo 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;
        }
Exemplo 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();
     }
 }