I have code like this:
IReadOnlyList<StorePackageUpdate> updates =
await storeContext.GetAppAndOptionalStorePackageUpdatesAsync();
After this invocation my application starts doing its stuff. Sometimes, when the store is down I think that this method is 'hanging' and it's waiting for a result that never comes. Is it possible? What is returned if the store is down? Is it null or exception is being thrown? I couldn't find anything in the docs or the forums.
For example - HttpClient.GetStringAsync() throws an exception if there is a network problem and the exception is listed in the documentation, but I can't find anything for this method.
Sources:
https://docs.microsoft.com/en-us/windows/uwp/packaging/self-install-package-updates
https://docs.microsoft.com/en-us/uwp/api/windows.services.store.storecontext.getappandoptionalstorepackageupdatesasync?view=winrt-20348
https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient.getstringasync?view=net-5.0