I had some issues running the Set-LockscreenWallpaper function by @Sauler here, which uses this class. That powershell function needed a final AwaitResult() call at the end, which required support for the WinRT interface IAsyncAction instead of IAsyncOperator<T> . This PR adds support for IAsyncAction (and moves some logic into a common parent abstract class). Best I can tell, it is working when added to Set-LockscreenWallpaper.
My C#/Windows knowledge is fairly limited, so it's possible I did something Java-ish.
I had some issues running the Set-LockscreenWallpaper function by @Sauler here, which uses this class. That powershell function needed a final
AwaitResult()
call at the end, which required support for the WinRT interfaceIAsyncAction
instead ofIAsyncOperator<T>
. This PR adds support forIAsyncAction
(and moves some logic into a common parent abstract class). Best I can tell, it is working when added to Set-LockscreenWallpaper.My C#/Windows knowledge is fairly limited, so it's possible I did something Java-ish.