Skip to content

Commit 7fbe299

Browse files
committed
Merge pull request #521 from lhaussknecht/cf-fixes
Added PocketPC in compiler directive to include the sync client in compa...
2 parents 18826dd + 7658cb6 commit 7fbe299

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

RestSharp/Http.Sync.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// limitations under the License.
1515
#endregion
1616

17-
#if FRAMEWORK
17+
#if FRAMEWORK || PocketPC
1818
using System;
1919
using System.Net;
2020

@@ -257,12 +257,12 @@ private HttpWebRequest ConfigureWebRequest(string method, Uri url)
257257
}
258258

259259
webRequest.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip | DecompressionMethods.None;
260-
260+
#if FRAMEWORK
261261
if(ClientCertificates != null)
262262
{
263263
webRequest.ClientCertificates.AddRange(ClientCertificates);
264264
}
265-
265+
#endif
266266
if(UserAgent.HasValue())
267267
{
268268
webRequest.UserAgent = UserAgent;

RestSharp/Http.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ protected bool HasFiles
136136
/// X509CertificateCollection to be sent with request
137137
/// </summary>
138138
public X509CertificateCollection ClientCertificates { get; set; }
139-
/// <summary>
139+
#endif
140+
#if FRAMEWORK || PocketPC
141+
/// <summary>
140142
/// Maximum number of automatic redirects to follow if FollowRedirects is true
141143
/// </summary>
142144
public int? MaxRedirects { get; set; }
@@ -179,7 +181,7 @@ protected bool HasFiles
179181

180182
public bool PreAuthenticate { get; set; }
181183

182-
#if FRAMEWORK
184+
#if FRAMEWORK || PocketPC
183185
/// <summary>
184186
/// Proxy info to be sent with request
185187
/// </summary>

RestSharp/IHttp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public interface IHttp
7373
HttpWebRequest AsPostAsync(Action<HttpResponse> action, string httpMethod);
7474
HttpWebRequest AsGetAsync(Action<HttpResponse> action, string httpMethod);
7575

76-
#if FRAMEWORK
76+
#if FRAMEWORK || PocketPC
7777
HttpResponse Delete();
7878
HttpResponse Get();
7979
HttpResponse Head();

RestSharp/RestClient.Sync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if FRAMEWORK
1+
#if FRAMEWORK || PocketPC
22
using System;
33
using System.Collections.Generic;
44
using System.Linq;

0 commit comments

Comments
 (0)