2016-03-17 4 views

ответ

0

ниже код работает от 1.1.0.32 где proxyUri будет что-то вроде http://myproxy.net:8080

var graphUri = new Uri(ConnectionConfig.GraphUri); 
var httpClientHandler = new HttpClientHandler(); 

httpClientHandler.Proxy = new WebProxy(ConnectionConfig.ProxyUri, true); 
httpClientHandler.UseProxy = true; 

var httpClient = new HttpClient(httpClientHandler); 
var httpClientWrapper = new HttpClientWrapper(ConnectionConfig.Username, ConnectionConfig.Password, httpClient); 
_graphClient = new GraphClient(graphUri, httpClientWrapper); 

 Смежные вопросы

  • Нет связанных вопросов^_^