[System] Remove any CFNetwork usage from the watchOS profile. Fixes #45847.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Mon, 24 Oct 2016 17:50:16 +0000 (19:50 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Mon, 24 Oct 2016 18:06:06 +0000 (20:06 +0200)
commit4b8fc544b0627490f227eb472f54d04e27fc8314
tree62691851241f1fbadd77b2174d1cac516c9a86ad
parent92be5357d12ecf0cc4c51fbcb76fc0514b375d1c
[System] Remove any CFNetwork usage from the watchOS profile. Fixes #45847.

The MacProxy class uses CFNetwork, but since CFNetwork is not a public
framework on watchOS, we can't use it.

So remove MacProxy completely (it only contains internal classes), and throw
PlatformNotSupportedException in any API that used it (the managed networking
stack is not supported on watchOS anyway, so this should be safe).

https://bugzilla.xamarin.com/show_bug.cgi?id=45847
mcs/class/System/ReferenceSources/AutoWebProxyScriptEngine.cs
mcs/class/System/monotouch_watch_System.dll.exclude.sources
mcs/class/referencesource/System/net/System/Net/webproxy.cs