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