How do I make sure that the container was either an instance of the class, or it was not, depending on whether there is a link to it or not. I using MEF container, C#
Edit:
In other words, I need the ability to manage the lifetime of objects Shared classes. For example, I have two points (objects Obj1, Obj2), which import a reference to the Shared Object (Obj3), but these classes are NoneShared and do not live long, but the object (Obj3) - a link which they imported a large and expensive it is always keep in memory.
Maybe there are other IoC containers, which will provide more opportunities to work with the lifetime of objects?