Windows Foundation interface representing an asynchronous operation.
Questions tagged [iasyncoperation]
22 questions
0
votes
0 answers
C++ Unable to get Async DragDrop functioning correctly
We currently have a Silverlight UI (which we are unable to change from at this stage) for our system, which has very limited drag drop capabilities. We are currently running out of browser with elevated trust. So in order to handle Silverlight's…

Matt
- 1
- 3
0
votes
1 answer
IAsyncOperation not casting
I have this class CustomFileStream, below is its signature
public class CustomFileStream : IRandomAccessStream {}
But when I use it like this,
IAsyncOperation IStorageFile.OpenAsync(FileAccessMode accessMode)
{
return…

That Guy
- 359
- 3
- 13
0
votes
1 answer
BitmapImage SetSourceAsync in WinRT c++
I am new to WinRT c++. I am trying to pass an StorageFile image from C# and open the file and set it as source in BitmapImage in WinRT to extract height and width of image. I am using the following code.
auto openOperation =…

croc
- 241
- 1
- 4
- 13
0
votes
1 answer
Getting multi-threading to synchronize between web page and Business layer
I'm having a problem getting this chunk of code to work (sorry for the length). The code is sterilized to just show the relevant portions in diagnosing the problem.
It works fine when run from a console app.
But when Utlities.SendBulkEmail is…

user1058946
- 243
- 2
- 3
- 14
0
votes
1 answer
How do wrap an Windows.Storage.Streams.IInputStream in an IInputStream interface?
I want to implement an IInputStream which delegates to another IInputStream and processes the read data before returning it to the user, like this:
using System;
using Windows.Storage.Streams;
using Org.BouncyCastle.Crypto;
using…

mauve
- 1,976
- 12
- 18
0
votes
1 answer
WinRT C++/CX Tasks not compiling
I'm trying to use C++/CX to create a WinRT component. I have the following code and it doesn't compile. What is wrong with it?
From what I understand PPL tasks should transparently be converted to IAsyncOperation if it's a task with a…

Jeremy Edwards
- 14,620
- 17
- 74
- 99
-1
votes
1 answer
Convert IAsyncOperation to Task
I'm trying to convert an IAsyncOperation to Task, the first thing that I had in mind is to create an extension method that simply wrap the GetResults method and return the Task.FromResult but I don't know if I'm doing things properly or not.
Any…

Mselmi Ali
- 1,139
- 2
- 18
- 28