Quantcast
Channel: Managed Extensibility Framework
Viewing all articles
Browse latest Browse all 265

New Post: A way to delete/replace a Shared object from the container

$
0
0
In my PRISM application I use MEF as a container. Most of my ViewModel are Non-Shared instances, but a couple are Shared due the requeriments (being used among different views).

But in certain moments I need to delete/release those ViewModel instances.

I know that I could make them Non-Shared and use statics methods to share data among the instances, but thats not a clean way to do it.

Is there a way to do it?

Viewing all articles
Browse latest Browse all 265

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>