Share via

Setup StoreContext for Desktop brdige

Yosif Chumpov 21 Reputation points
2022-04-14T08:23:25.44+00:00

I observe that GetAppLicenseAsync sometimes work fine but sometimes return wrong info so I'm wondering what may cause this behavior and what is the proper way to configure and use StoreContext.GetDefault(); for desktop bridge? MSDN says that

"...Windows desktop applications that use the Desktop Bridge must perform additional steps to configure the StoreContext object before they can use this object. For more information, see this section. "

but does not answer the question should I use singleton for all my request to the store, or should I always provide window handle when I create the StoreContext?

Developer technologies | Universal Windows Platform (UWP)
Developer technologies | Windows Presentation Foundation
0 comments No comments

Answer accepted by question author

Anonymous
2022-04-14T10:03:21.22+00:00

Hello,

Welcome to Microsoft Q&A!

The document has a very clear statement that you must configure the StoreContext object to specify the application window when you create the StoreContext object. It doesn't matter how you use the StoreContext object.

For more information, please check the document: Using the StoreContext class with the Desktop Bridge

Thank you.


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.