﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - IRestResponse Error in Program.Core</title><link>http://www.intersoftsolutions.com/Community/Crosslight/IRestResponse-Error-in-ProgramCore/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>IRestResponse Error in Program.Core</title><link>http://www.intersoftsolutions.com/Community/Crosslight/IRestResponse-Error-in-ProgramCore/</link><pubDate>Tue, 12 Aug 2014 05:35:34 GMT</pubDate><dc:creator>yudi</dc:creator><category>xamarin</category><category>RestClient</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Glad to hear that adding BCL Packages to the Core project resolved the problem.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>IRestResponse Error in Program.Core</title><link>http://www.intersoftsolutions.com/Community/Crosslight/IRestResponse-Error-in-ProgramCore/</link><pubDate>Mon, 11 Aug 2014 19:40:47 GMT</pubDate><dc:creator>devincroud</dc:creator><category>xamarin</category><category>RestClient</category><description>&lt;p&gt;Fixed it... &amp;nbsp;I had to Add BCL Packages to the Core.&lt;/p&gt;</description></item><item><title>IRestResponse Error in Program.Core</title><link>http://www.intersoftsolutions.com/Community/Crosslight/IRestResponse-Error-in-ProgramCore/</link><pubDate>Mon, 11 Aug 2014 19:02:52 GMT</pubDate><dc:creator>devincroud</dc:creator><category>xamarin</category><category>RestClient</category><description>&lt;p&gt;I'm having an issue where I cannot await the client.ExecuteAsync. &amp;nbsp;The code works if I place it in .IOS or .Android but not in .Core. &amp;nbsp;The error is issued on "&lt;span style="font-family: 'Courier New', Tahoma; font-size: 9pt; background-color: rgb(255, 252, 225);"&gt;IRestResponse response =  await client.ExecuteAsync (request);"&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Cannot await System.Tasks.Task&amp;lt;Intersoft.Crosslight.RestClient.IRestResponse&amp;gt;' Expression&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;		async private void SignUpUser(object parameter)
		{
			//this.MessagePresenter.Show ("Signup " + firstNameEntry + " " + lastNameEntry);
			string baseUrl = "http://localhost:3000/api";

			ComplexData data = new ComplexData();
			data.UserInfo = new UserInfo { FirstName = _firstName, LastName = _lastName, Email = _email };

			// create the RestClient
			IRestClient client = new RestClient(baseUrl);

			// create RestRequest to access GET api/values
			IRestRequest request = new RestRequest("", HttpMethod.POST); 
			request.RequestFormat = RequestDataFormat.Json;

			request.AddBody (data);

			// execute the RestRequest
			IRestResponse response =  await client.ExecuteAsync (request);


			this.MessagePresenter.Show ("Response: " + response.Content);

		}&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>