title: Populate MEF plugin with config data
body: <p>I'm fighting with MEF and I stopped at some problem - in my App I have singleton class:</p>
  
  <pre><code>class Config: IConfig {
  }
  </code></pre>
  
  <p>which stores App config data - loaded for example from XML files, DB etc</p>
  
  <p>Now I have some plugins which must have access to the Config - so I wonder what is the best solution to pass the Config to plugin?</p>
  
  <p>My solution for now is:</p>
  
  <pre><code>[ImportMany(typeof (IFieldPlugin))]
  public IEnumerable&lt;Lazy&lt;IFieldPlugin, IFieldPluginData&gt;&gt; fieldPlugins;
  
  
  foreach (var plugin in PluginsStorage.Instance.fieldPlugins)
  {
      if (plugin.Metadata.Name.Equals(field.Plugin))
      {
          if(!plugin.IsValueCreated) {
              plugin.Value.Config = Config.Instance;
          }
          result = plugin.Value.DoStep(this,url);
      }
  }
  </code></pre>
  
  <p>Any better solution?</p>