From 86d2a4ada8712b8802c12bbe218f3a9d41fa2db6 Mon Sep 17 00:00:00 2001 From: Jake Farrell Date: Sat, 19 May 2012 14:29:15 +0000 Subject: [PATCH] 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 --- lib/csharp/src/Transport/THttpClient.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/csharp/src/Transport/THttpClient.cs b/lib/csharp/src/Transport/THttpClient.cs index c875a43c..7f04be71 100644 --- a/lib/csharp/src/Transport/THttpClient.cs +++ b/lib/csharp/src/Transport/THttpClient.cs @@ -40,10 +40,12 @@ namespace Thrift.Transport private IDictionary customHeaders = new Dictionary(); - 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 { -- 2.17.1