Пример #1
0
 private HttpRequestMessage AddBasicAuthentication(HttpRequestMessage aiRequestMessage)
 {
     if (_token != null)
     {
         return(aiRequestMessage.AddHeaderToRequest("Authorization", new List <string>()
         {
             _token
         }));
     }
     return(aiRequestMessage);
 }