I would choose the second option.
He is currently working on a Silverlight application that stores the state data of domain objects.
We have what was called the ApplicationManager, which is allowed through the IoC to store reference data and domain data. There may be a better term than ApplicationManager, but to date no standard naming convention has been found.
The concept works well, all of our view models have access to the ApplicationManager, so everything we pass is the identifier of the object when another part of the application needs to take action.
If you have asynchronous operations that update data, you need to remember to maintain compatibility with the user interface and data warehouse
source share