I'm trying to specify the web proxy for a request using WebAPI in a dotnet core app. This block of code used to work when I targeted the actual clr (dnx46) but, now I'm trying to use the rc2 stuff that says the supported frameworks are netcoreapp1.0 and netstandard1.5.
var clientHandler = new HttpClientHandler{
Proxy = string.IsNullOrWhiteSpace(this._clientSettings.ProxyUrl) ? null : new WebProxy (this._clientSettings.ProxyUrl, this._clientSettings.BypassProxyOnLocal),
UseProxy = !string.IsNullOrWhiteSpace(this._clientSettings.ProxyUrl)
};
I'm wondering where WebProxy class went. I can't find it anywhere, not even in the github repositories. If it changed from WebProxy, what did it change to? I need to be able to set the proxy to a specific url for specific requests, so using the "global Internet Explorer" way of things isn't going to work for my needs. This is mostly for debugging of web requests/response purposes.