iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I'm having an issue where I cannot await the client.ExecuteAsync. The code works if I place it in .IOS or .Android but not in .Core. The error is issued on "IRestResponse response = await client.ExecuteAsync (request);"
Cannot await System.Tasks.Task<Intersoft.Crosslight.RestClient.IRestResponse>' Expression
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); }
Fixed it... I had to Add BCL Packages to the Core.
Glad to hear that adding BCL Packages to the Core project resolved the problem.
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.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname