コード例 #1
0
ファイル: WebAsyncResult.cs プロジェクト: henricj/SM.Mono.Net
 internal void SetCompleted(bool synch, HttpWebResponse response)
 {
     this.synch = synch;
     this.response = response;
     exc = null;
     lock (locker)
     {
         isCompleted = true;
         if (handle != null)
             handle.Set();
     }
 }
コード例 #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;
        }
コード例 #3
0
ファイル: WebAsyncResult.cs プロジェクト: henricj/SM.Mono.Net
 internal void Reset()
 {
     callbackDone = false;
     exc = null;
     response = null;
     writeStream = null;
     exc = null;
     lock (locker)
     {
         isCompleted = false;
         if (handle != null)
             handle.Reset();
     }
 }