public HttpClientWrapper() { var accountKey = Encoding.ASCII.GetBytes(ConfigurationHelpers.GetString("MachineLearning.AccountKey")); var header = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(accountKey)); DefaultRequestHeaders.Authorization = header; }
private static string GetCdnSource(string src) { return(string.Format("{0}/{1}", ConfigurationHelpers.GetString("ImagePath"), src)); }