Skip to content

Commit 3daabc4

Browse files
author
Christopher McGinnis
committed
updated to include the new async method
1 parent aabb4fc commit 3daabc4

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

RestSharp.WindowsPhone8/RestSharp.WindowsPhone8.csproj

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,26 @@
2727
<DebugType>full</DebugType>
2828
<Optimize>false</Optimize>
2929
<OutputPath>Bin\Debug</OutputPath>
30-
<DefineConstants>TRACE;DEBUG;WINDOWS_PHONE;MANGO</DefineConstants>
30+
<DefineConstants>TRACE;DEBUG;WINDOWS_PHONE;MANGO;WP8</DefineConstants>
3131
<NoStdLib>true</NoStdLib>
3232
<NoConfig>true</NoConfig>
3333
<ErrorReport>prompt</ErrorReport>
3434
<WarningLevel>4</WarningLevel>
35-
<DocumentationFile>Bin\Debug\RestSharp.WindowsPhone.xml</DocumentationFile>
35+
<DocumentationFile>
36+
</DocumentationFile>
3637
<Prefer32Bit>false</Prefer32Bit>
3738
</PropertyGroup>
3839
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3940
<DebugType>pdbonly</DebugType>
4041
<Optimize>true</Optimize>
4142
<OutputPath>Bin\Release</OutputPath>
42-
<DefineConstants>TRACE;WINDOWS_PHONE</DefineConstants>
43+
<DefineConstants>TRACE;WINDOWS_PHONE;MANGO;WP8</DefineConstants>
4344
<NoStdLib>true</NoStdLib>
4445
<NoConfig>true</NoConfig>
4546
<ErrorReport>prompt</ErrorReport>
4647
<WarningLevel>4</WarningLevel>
47-
<DocumentationFile>Bin\Release\RestSharp.WindowsPhone.xml</DocumentationFile>
48+
<DocumentationFile>
49+
</DocumentationFile>
4850
<Prefer32Bit>false</Prefer32Bit>
4951
</PropertyGroup>
5052
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
@@ -98,6 +100,9 @@
98100
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
99101
</PropertyGroup>
100102
<ItemGroup>
103+
<Compile Include="..\RestSharp.Net4\Extensions\ResponseStatusExtensions.cs">
104+
<Link>Extensions\ResponseStatusExtensions.cs</Link>
105+
</Compile>
101106
<Compile Include="..\restsharp\authenticators\HttpBasicAuthenticator.cs">
102107
<Link>Authenticators\HttpBasicAuthenticator.cs</Link>
103108
</Compile>

RestSharp/IRestClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
using System.Net;
1919
using System.Collections.Generic;
2020
using System.Security.Cryptography.X509Certificates;
21-
#if NET4 || MONODROID || MONOTOUCH
21+
#if NET4 || MONODROID || MONOTOUCH || WP8
2222
using System.Threading;
2323
using System.Threading.Tasks;
2424
#endif
@@ -123,7 +123,7 @@ public interface IRestClient
123123
IRestResponse<T> ExecuteAsPost<T>(IRestRequest request, string httpMethod) where T : new();
124124
#endif
125125

126-
#if NET4 || MONODROID || MONOTOUCH
126+
#if NET4 || MONODROID || MONOTOUCH || WP8
127127
/// <summary>
128128
/// Executes the request and callback asynchronously, authenticating if needed
129129
/// </summary>

RestSharp/RestClient.Async.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
using System.Collections.Generic;
1919
using System.Linq;
2020
using System.Threading;
21-
#if NET4 || MONODROID || MONOTOUCH
21+
#if NET4 || MONODROID || MONOTOUCH || WP8
2222
using System.Threading.Tasks;
2323
#endif
2424
using System.Text;
@@ -158,7 +158,7 @@ private void DeserializeResponse<T>(IRestRequest request, Action<IRestResponse<T
158158
callback(restResponse, asyncHandle);
159159
}
160160

161-
#if NET4 || MONODROID || MONOTOUCH
161+
#if NET4 || MONODROID || MONOTOUCH || WP8
162162
/// <summary>
163163
/// Executes a GET-style request asynchronously, authenticating if needed
164164
/// </summary>

0 commit comments

Comments
 (0)