﻿<?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 - How to write async operations in Intersoft WebApi based ApiControllers?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-write-async-operations-in-Intersoft-WebApi-based-ApiControllers/</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>How to write async operations in Intersoft WebApi based ApiControllers?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-write-async-operations-in-Intersoft-WebApi-based-ApiControllers/</link><pubDate>Mon, 05 Jan 2015 06:57:56 GMT</pubDate><dc:creator>yudi</dc:creator><category>async</category><category>WebApi</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Currently, the generated code of Web API controller doesn't use async mode. I have forwarded this to Crosslight development team as feature request. It is submitted under CROS-678.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Once implemented, there are no code changes needed in your existing Crosslight mobile project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I will keep this thread updated with any news I heard from the team regarding CROS-678.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to write async operations in Intersoft WebApi based ApiControllers?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-write-async-operations-in-Intersoft-WebApi-based-ApiControllers/</link><pubDate>Sun, 04 Jan 2015 04:01:33 GMT</pubDate><dc:creator>hongliyu2002</dc:creator><category>async</category><category>WebApi</category><description>&lt;p&gt;Thank you for your explaination.&lt;/p&gt;&lt;p&gt;But I mean server side async methods in Controller generated by Crosslight VS Extension. Does it support async mode?&lt;/p&gt;</description></item><item><title>How to write async operations in Intersoft WebApi based ApiControllers?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-write-async-operations-in-Intersoft-WebApi-based-ApiControllers/</link><pubDate>Fri, 02 Jan 2015 06:20:39 GMT</pubDate><dc:creator>yudi</dc:creator><category>async</category><category>WebApi</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I assume that you are using Business project template of Crosslight. To use async mode, you can modify &lt;em&gt;OnNavigated&lt;/em&gt; in CategoryListViewModel into the following snippet code:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;public override async void Navigated(NavigatedParameter parameter)
{
    base.Navigated(parameter);

    ISelectResult&amp;lt;Category&amp;gt; selectResult = await this.Repository.GetAllAsync();
    this.Items = selectResult.Items.ToObservable();
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to write async operations in Intersoft WebApi based ApiControllers?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-write-async-operations-in-Intersoft-WebApi-based-ApiControllers/</link><pubDate>Wed, 31 Dec 2014 07:24:41 GMT</pubDate><dc:creator>hongliyu2002</dc:creator><category>async</category><category>WebApi</category><description>&lt;p&gt;Intersoft WebApi Controllers support sync methods, but I cannot find a way to use them in async mode. As you know, the async methods are supported by the latest version of WebApi 2, it can increase performance significantly. Please take a look.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Maybe the code can be generated as below:&lt;/p&gt;&lt;pre&gt;[HttpGet]public async Task&amp;lt;QueryResult&amp;gt; Categories(ODataQueryOptions&amp;lt;Category&amp;gt; options)
{
	return await this.ToQueryResultAsync&amp;lt;Category&amp;gt;(db.Context.Categories, options);
}&lt;/pre&gt;</description></item></channel></rss>