Amazon.EC2.Util.ImageUtilities.DownloadControlFileAsync C# (CSharp) Метод

DownloadControlFileAsync() приватный статический Метод

private static DownloadControlFileAsync ( string location, IWebProxy proxy ) : Task
location string
proxy IWebProxy
Результат Task
        private static async Task<HttpWebResponse> DownloadControlFileAsync(string location, IWebProxy proxy)
        {
            var request = WebRequest.Create(location) as HttpWebRequest;
            if (proxy != null)
                request.Proxy = proxy;
            return await request.GetResponseAsync().ConfigureAwait(false) as HttpWebResponse;
        }