narain
narain

Reputation: 402

WPF Prism Async Initialization of Modules

I have a PRISM v4 Project that uses several modules that are loaded at startup or when the user needs them.

One of those modules has to pull in a lot of data so i made the most cost intesive database calls async. This works pretty well except for the initialization of the module. When the module is loaded the async method works as expected and immediately returns control to the ui thread, but when i initialize the module it seems as if the constructor is waiting for the asnyc method to finish before the shell is populated with the view of the module.

I haven't really found any major sources on wether this is a known problem with prism and the unity framework.

Upvotes: 3

Views: 1393

Answers (0)

Related Questions