title: Is it possible to inject an existing instance into a MEF plugin?
body: <p>We are creating an application which supports plugins using MEF. We are determining what type of plugins the user is able to create, and want to use dependency injection to provide this type of plugin with the data it needs.</p>
  
  <p>For example, we make a plugin that is able to display a list. To achieve this, it needs the existing instance of the IRepository for the type of data the list will display.</p>
  
  <p>The IRepository is created somewhere else in a datacontext class, so we are unable to let MEF itself create an instance of the IRepository.</p>
  
  <p>My idea is to inject the existing instance of the IRepository into the plugin via the importingconstructor, however for this to work I need to make the already instantiated IRepository known to MEF, and I haven't been able to figure out how to do it. Any help would be appreciated.</p>