Author: jfarrell
Date: Sat May 19 14:29:15 2012
New Revision: 1340487

URL: http://svn.apache.org/viewvc?rev=1340487&view=rev
Log:
THRIFT-1610:IWebProxy not available on WP7 platform
Client: csharp
Patch: Jens Geyer

Fix WP7 clients which do not have IWebProxy available.


Modified:
    thrift/trunk/lib/csharp/src/Transport/THttpClient.cs

Modified: thrift/trunk/lib/csharp/src/Transport/THttpClient.cs
URL: 
http://svn.apache.org/viewvc/thrift/trunk/lib/csharp/src/Transport/THttpClient.cs?rev=1340487&r1=1340486&r2=1340487&view=diff
==============================================================================
--- thrift/trunk/lib/csharp/src/Transport/THttpClient.cs (original)
+++ thrift/trunk/lib/csharp/src/Transport/THttpClient.cs Sat May 19 14:29:15 
2012
@@ -40,10 +40,12 @@ namespace Thrift.Transport
 
                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 @@ namespace Thrift.Transport
                        }
                }
 
+#if !SILVERLIGHT
         public IWebProxy Proxy
         {
             set
@@ -80,6 +83,7 @@ namespace Thrift.Transport
                 proxy = value;
             }
         }
+#endif
 
                public override bool IsOpen
                {


Reply via email to