title: MEF not providing object
body: <p>Update:</p>
  
  <p>This is an mvc plugin project, using MEF to get the controllers and actions at run time. <a href="http://www.fidelitydesign.net/?p=104" rel="nofollow">http://www.fidelitydesign.net/?p=104</a> </p>
  
  <p>I added a new project and in its class I added an export of a type that is already being composed. </p>
  
  <pre><code>  [Export(typeof(IController)), ExportMetadata("Name", "Clocks")]
    public class ClocksController : Controller
    {
  
      public XmlActionResult Index()
      {
       var p = DeviceLogic.GetUnassigned;
      }
    [Import(typeof(DeviceLogic))]
    DeviceLogic DeviceLogic { get; set; }
    }
  </code></pre>
  
  <p>This gets composed in another project:</p>
  
  <pre><code>  [Export]
    public class ImportControllerFactory : DefaultControllerFactory
    {
      [ImportMany]
      private IEnumerable&lt;PartFactory&lt;IController, IControllerMetadata&gt;&gt; ControllerFactories;
    }
  </code></pre>
  
  <p>Application Start</p>
  
  <pre><code>[ImportMany]
  private IEnumerable&lt;ImportControllerFactory&gt; ControllerFactories;
  </code></pre>
  
  <p>Controller factories is null, until I actually compose the parts</p>
  
  <pre><code>container.ComposeParts(this);
  </code></pre>
  
  <p>thats working fine, so I decided to try and emulate this to get devicelogic to appear in the project im having trouble with.</p>
  
  <p>I created an emptry interface (IEmpty) for testing and tried this:</p>
  
  <pre><code>  [Export(typeof(IEmpty))]
    public class RequestProcessor : IEmpty
    {
  
      [Import(typeof(DeviceLogic))]
      DeviceLogic DeviceLogic { get; set; }
    }
  </code></pre>
  
  <p>and in my applciation start added</p>
  
  <pre><code>[ImportMany]
  private IEnumerable&lt;IEmpty&gt; TestMef;
  </code></pre>
  
  <p>This is filled with the one instance after composition, so this seems to have worked. My question is does anyone have any suggestions as to why devicelogic is null in requestprocessor but not in clocksController.</p>