I’m trying to use the Windows SDK in a Windows 10 Universal App (specifically, one which will run on Windows 10 IoT Core on a Raspberry Pi 3), but I’m finding that all calls to the API cause their thread to effectively hang.
OK, so when doing a UWP build, it seems that intentionally making the calls Synchronous using .result is the problem. Making the calls explicitly await (which must be done in a method tagged async, and therefore cannot be done in events or during initialisation) resolves this.
It would be nice to be able to just call on .result though, I’m dealing with all UI updates in DispatcherTimerTick events, so now have to resort to a spaghetti mess of additional calls to get the updates I need.