WP8, VS 2013 Live SDK (nuget) v5.5
private async void DownLoadImageFromSkyDrive(string imgUrl, Int32 number)
{
LiveConnectClient client = new LiveConnectClient(_currentSession);
var image = await client.DownloadAsync(imgUrl + "/content");
BitmapImage bitmap = new BitmapImage();
bitmap.SetSource(image.Stream);
}
After the execution of
var image = await client.DownloadAsync(imgUrl + "/content");
The callstack is in the parent function. There's no exception, but
BitmapImage bitmap = new BitmapImage();
is not executed. The code has worked....
Or not yet executed... You function is an
async
method with no return value. It doesn't block the caller. Also I believeasync void
won't pass the exception to the caller. Put thetry catch
block inDownLoadImageFromSkyDrive
to see what's going on.