Last week (MIX 2011), Microsoft released the second Visual Studio Async CTP and I’ve decided to give it a try and implement one of my blog posts related to our Silverlight Data Virtualization with WCF RIA Services.
To do this I’ve made two extension methods for DomainContext: LoadAsync<T>() and CountAsync<T>().
The first method will return the entities from a EntityQuery<T> and the second will return asynchronously count for the specified query.
And here is the result:
As you can see the only hardcoded value here is LoadSize for the virtual collection and everything else is retrieved and applied asynchronously using async and await keywords.
Vladimir Enchev is Director of Engineering, Native Mobile UI & Frameworks
Copyright © 2016, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.