1
Vote

In PersonalImage.DownloadToFile transacted file not committed

description

In the PersonalImage.DownloadToFileAsync the transacted file is not committed and will stay in a *.~tmp file.

To fix this just replace line 138 in HealthVault.Runtime/ItemTypes/PersonalImage.cs with
if(!await DownloadAsync(record, transaction.Stream).AsTask(cancelToken))
    return false;

await transaction.CommitAsync();
return true;
Best regards, Paul

comments