diff --git a/RestSharp/Http.Sync.cs b/RestSharp/Http.Sync.cs index d3bcfb1ef..72c354d0f 100644 --- a/RestSharp/Http.Sync.cs +++ b/RestSharp/Http.Sync.cs @@ -14,7 +14,7 @@ // limitations under the License. #endregion -#if FRAMEWORK +#if FRAMEWORK || PocketPC using System; using System.Net; @@ -257,12 +257,12 @@ private HttpWebRequest ConfigureWebRequest(string method, Uri url) } webRequest.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip | DecompressionMethods.None; - +#if FRAMEWORK if(ClientCertificates != null) { webRequest.ClientCertificates.AddRange(ClientCertificates); } - +#endif if(UserAgent.HasValue()) { webRequest.UserAgent = UserAgent; diff --git a/RestSharp/Http.cs b/RestSharp/Http.cs index 895a76c2c..7c6763807 100644 --- a/RestSharp/Http.cs +++ b/RestSharp/Http.cs @@ -136,7 +136,9 @@ protected bool HasFiles /// X509CertificateCollection to be sent with request /// public X509CertificateCollection ClientCertificates { get; set; } - /// +#endif +#if FRAMEWORK || PocketPC + /// /// Maximum number of automatic redirects to follow if FollowRedirects is true /// public int? MaxRedirects { get; set; } @@ -179,7 +181,7 @@ protected bool HasFiles public bool PreAuthenticate { get; set; } -#if FRAMEWORK +#if FRAMEWORK || PocketPC /// /// Proxy info to be sent with request /// diff --git a/RestSharp/IHttp.cs b/RestSharp/IHttp.cs index 782b59432..f43bfdc33 100644 --- a/RestSharp/IHttp.cs +++ b/RestSharp/IHttp.cs @@ -73,7 +73,7 @@ public interface IHttp HttpWebRequest AsPostAsync(Action action, string httpMethod); HttpWebRequest AsGetAsync(Action action, string httpMethod); -#if FRAMEWORK +#if FRAMEWORK || PocketPC HttpResponse Delete(); HttpResponse Get(); HttpResponse Head(); diff --git a/RestSharp/RestClient.Sync.cs b/RestSharp/RestClient.Sync.cs index fc90870f1..6351c3942 100644 --- a/RestSharp/RestClient.Sync.cs +++ b/RestSharp/RestClient.Sync.cs @@ -1,4 +1,4 @@ -#if FRAMEWORK +#if FRAMEWORK || PocketPC using System; using System.Collections.Generic; using System.Linq;