Example #1
0
        protected Task<HttpResponseMessage> GetAsync(string path, string method, IDictionary<string, string> parameters)
        {
            Contract.Requires(string.IsNullOrEmpty(path));
            Contract.Requires(string.IsNullOrEmpty(method));
            Contract.Requires(parameters != null);

            HttpClient client = CreateClient();
            string queryString = parameters.FormatQueryString();
            var response = client.GetAsync(ApiBasePath + path + method + "?" + queryString);

            return response;
        }