I've used CSLA as a part of my Web Solution's Architecture and, in order to be able to manage repository pattern, the IoC container for my DataAccess Layer works with MEF (By using CSLA-Contrib). It is known that the first load of the MEF Catalog takes a while deppending on how huge are the libraries.
The point is that my solution works ok for a moment but, after break times where no one uses it The solution takes a another while to load and it is because the MEF Catalog is loaded again.
I've been thinking of changing the Life time of each part to Shared so the instances will be available until my MEF Catalog is disposed.
Do you think It's good idea to make this change to my MEF Parts?
Thank you for you attention.
Ronald