Beispiel #1
0
        public HttpClientWrapper()
        {
            var accountKey = Encoding.ASCII.GetBytes(ConfigurationHelpers.GetString("MachineLearning.AccountKey"));
            var header     = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(accountKey));

            DefaultRequestHeaders.Authorization = header;
        }
Beispiel #2
0
 private static string GetCdnSource(string src)
 {
     return(string.Format("{0}/{1}", ConfigurationHelpers.GetString("ImagePath"), src));
 }