Esempio n. 1
0
 public static bool TryDownloadAsync(string url, HttpClientOptions options, HttpClientResponse response, HttpClientAsyncCallback callback)
 {
     if (options == null || response == null)
     {
         return(false);
     }
     response.AsynchronousMode = true;
     return(HttpClient.InternalTryDownload(url, options, response, callback));
 }
Esempio n. 2
0
 public static bool TryDownload(string url, HttpClientOptions options, HttpClientResponse response)
 {
     if (options == null || response == null)
     {
         return(false);
     }
     response.AsynchronousMode = false;
     return(HttpClient.InternalTryDownload(url, options, response, null));
 }