Permalink
Browse files

updated to include the new async method

  • Loading branch information...
1 parent aabb4fc commit 3daabc4fd8dec189cabcfc08ca2f1493e6cf37dc @rmblstrp rmblstrp committed Dec 29, 2013
@@ -27,24 +27,26 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Bin\Debug</OutputPath>
- <DefineConstants>TRACE;DEBUG;WINDOWS_PHONE;MANGO</DefineConstants>
+ <DefineConstants>TRACE;DEBUG;WINDOWS_PHONE;MANGO;WP8</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <DocumentationFile>Bin\Debug\RestSharp.WindowsPhone.xml</DocumentationFile>
+ <DocumentationFile>
+ </DocumentationFile>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Bin\Release</OutputPath>
- <DefineConstants>TRACE;WINDOWS_PHONE</DefineConstants>
+ <DefineConstants>TRACE;WINDOWS_PHONE;MANGO;WP8</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <DocumentationFile>Bin\Release\RestSharp.WindowsPhone.xml</DocumentationFile>
+ <DocumentationFile>
+ </DocumentationFile>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
@@ -98,6 +100,9 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
+ <Compile Include="..\RestSharp.Net4\Extensions\ResponseStatusExtensions.cs">
+ <Link>Extensions\ResponseStatusExtensions.cs</Link>
+ </Compile>
<Compile Include="..\restsharp\authenticators\HttpBasicAuthenticator.cs">
<Link>Authenticators\HttpBasicAuthenticator.cs</Link>
</Compile>
View
@@ -18,7 +18,7 @@
using System.Net;
using System.Collections.Generic;
using System.Security.Cryptography.X509Certificates;
-#if NET4 || MONODROID || MONOTOUCH
+#if NET4 || MONODROID || MONOTOUCH || WP8
using System.Threading;
using System.Threading.Tasks;
#endif
@@ -123,7 +123,7 @@ public interface IRestClient
IRestResponse<T> ExecuteAsPost<T>(IRestRequest request, string httpMethod) where T : new();
#endif
-#if NET4 || MONODROID || MONOTOUCH
+#if NET4 || MONODROID || MONOTOUCH || WP8
/// <summary>
/// Executes the request and callback asynchronously, authenticating if needed
/// </summary>
@@ -18,7 +18,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading;
-#if NET4 || MONODROID || MONOTOUCH
+#if NET4 || MONODROID || MONOTOUCH || WP8
using System.Threading.Tasks;
#endif
using System.Text;
@@ -158,7 +158,7 @@ private void DeserializeResponse<T>(IRestRequest request, Action<IRestResponse<T
callback(restResponse, asyncHandle);
}
-#if NET4 || MONODROID || MONOTOUCH
+#if NET4 || MONODROID || MONOTOUCH || WP8
/// <summary>
/// Executes a GET-style request asynchronously, authenticating if needed
/// </summary>

0 comments on commit 3daabc4

Please sign in to comment.