AzureML.ManagementUtil.HttpPostFile C# (CSharp) Method

HttpPostFile() private method

private HttpPostFile ( string url, string filePath ) : Task
url string
filePath string
return Task
        internal async Task<HttpResult> HttpPostFile(string url, string filePath)
        {
            HttpClient hc = GetAuthenticatedHttpClient();
            StreamContent sc = new StreamContent(File.OpenRead(filePath));
            HttpResponseMessage resp = await hc.PostAsync(url, sc);
            HttpResult hr = await CreateHttpResult(resp);
            return hr;
        }