title: MEF and Unity integration
body: <p>I have an application where I use MEF for composition and unity for DI.
  At some point, I have a component that uses MEF to load many providers for a sevice.
  Some if the providers should be instantiated using Unity, because they need to receive add'l components when instantiated.</p>
  
  <p>The provider needed to be created by Unity had the dependency types / interfaces registered with the container.</p>
  
  <p>But when the root component is composed through MEF, (and the list is filled with all exported components registered by MEF), the one that needs build up with Unity doesn't get its dependencies injected.</p>
  
  <p>My code is </p>
  
  <pre><code>public class LoggerManager
  {
      [ImportMany(typeof(ILogger))]
      private List&lt;ILogger&gt; _loggers { get; set; }
  }
  </code></pre>
  
  <p>and a logger is</p>
  
  <pre><code>[Export(typeof(ILogger))]
  public class WinEventLog : EventLog, ILogger
  {
  
      private IWinLoggerConfigurator _config = null;
  
      public WinEventLog(IWinLoggerConfigurator config)
      {
          _config=config;
      }
  }
  </code></pre>
  
  <p>In my main code I have, before attempting to compose LogManager</p>
  
  <pre><code>UnityHelper.Container.RegisterType&lt;IWinLoggerConfigurator , MyWinLoggerConfigurator&gt;();
  </code></pre>
  
  <p>How this can be accomplished?</p>
  
  <p>Thank you     </p>