Answered by:
Implementing Async call pattern

Question
-
I am writing a custom component that wraps a bit of network traffic. I would like to implement the async pattern so that sending data through the component doesn't cause my app to hang. Is there an example anywhere of how to do this in C++?Thursday, September 22, 2011 8:43 PM
Answers
-
diltsman,
You're right -- there aren't any async production samples on in yet, and doing it in C++ today is quite hard. But hang in there! We're are already working on it, and will soon offer a solution with some samples. Keep an eye on our blog at http://blogs.msdn.com/b/nativeconcurrency/ and you'll be the first to know. I promise you'll like it -- but that's all I can say for now.
Artur Laksberg - MSFT- Proposed as answer by DavidLambMicrosoft employee, Moderator Thursday, September 29, 2011 9:33 PM
- Marked as answer by DavidLambMicrosoft employee, Moderator Friday, October 21, 2011 4:19 PM
Friday, September 23, 2011 11:22 PM
All replies
-
Hello. Please try this query out on the metro style apps samples gallery. You would find some samples that will help you.
Neeraj Wadhwa SDET II, Runtime Experience(WinRT), Developer Exp. Windows.- Proposed as answer by Neeraj Wadhwa [MSFT] Friday, September 23, 2011 6:46 PM
- Unproposed as answer by diltsman Tuesday, September 27, 2011 8:38 PM
Friday, September 23, 2011 6:45 PM -
Nope. I already did basically that search. They show how to use the async pattern, how to set the callback and call start. They don't show how to implement the set of classes so that you can expose the async pattern from your custom component.Friday, September 23, 2011 8:26 PM
-
diltsman,
You're right -- there aren't any async production samples on in yet, and doing it in C++ today is quite hard. But hang in there! We're are already working on it, and will soon offer a solution with some samples. Keep an eye on our blog at http://blogs.msdn.com/b/nativeconcurrency/ and you'll be the first to know. I promise you'll like it -- but that's all I can say for now.
Artur Laksberg - MSFT- Proposed as answer by DavidLambMicrosoft employee, Moderator Thursday, September 29, 2011 9:33 PM
- Marked as answer by DavidLambMicrosoft employee, Moderator Friday, October 21, 2011 4:19 PM
Friday, September 23, 2011 11:22 PM -
I’m happy to say that we just announced the availability of the async production sample pack – please see our blog post and try the accompanying samples:
Artur Laksberg - MSFTThursday, October 27, 2011 11:11 PM