THRIFT-1610:IWebProxy not available on WP7 platform
Client: csharp
Patch: Jens Geyer

Fix WP7 clients which do not have IWebProxy available.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1340487 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/csharp/src/Transport/THttpClient.cs b/lib/csharp/src/Transport/THttpClient.cs
index c875a43..7f04be7 100644
--- a/lib/csharp/src/Transport/THttpClient.cs
+++ b/lib/csharp/src/Transport/THttpClient.cs
@@ -40,10 +40,12 @@
 
 		private IDictionary<String, String> customHeaders = new Dictionary<string, string>();
 
-        private HttpWebRequest connection = null;
+        private HttpWebRequest connection = null;

+#if !SILVERLIGHT
         private IWebProxy proxy = WebRequest.DefaultWebProxy;
-
-		public THttpClient(Uri u)
+#endif

+

+        public THttpClient(Uri u)
 		{
 			uri = u;
             connection = CreateRequest();
@@ -73,6 +75,7 @@
 			}
 		}
 
+#if !SILVERLIGHT
         public IWebProxy Proxy
         {
             set
@@ -80,6 +83,7 @@
                 proxy = value;
             }
         }
+#endif
 
 		public override bool IsOpen
 		{