How to await create_task<> from c#

May 12, 2014 at 5:11 PM
Edited May 12, 2014 at 5:13 PM
How to use async/await approach from C# to await a C++ call that returns concurrency::task<>, without using IAsyncAction and IAsyncResult WinRT interfaces (i..e over Win 7/server).

May 12, 2014 at 5:56 PM

You can start from our tutorial or if you only need ppl tasks you can get examples from the ppl task parallelism.

May 12, 2014 at 6:29 PM
actually this is not what i am looking for,

I am looking to have http_client rest sdk being called from within C# method using async/await 5.0 feature. Is this doable outside WinRT, because in WinRT it is very simple, i just need to wrap the c++ call with a function that returns IAsyncOperation or IAsyncAction and then i can call it from C# using await expression.