title: Using ConnectionString name in parameter
body: <p>I currently have an autofac section in my web.config that looks like this.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;autofac&gt;
    &lt;components&gt;
      &lt;component type="MilepointLog.Repositories.Repository, MilepointLog.Repositories" 
                 service="MilepointLog.Repositories.IITDMilepointRepository, MilepointLog.Repositories"&gt;
        &lt;parameters&gt;
          &lt;parameter name="connectionString" value="test" /&gt;
        &lt;/parameters&gt;
      &lt;/component&gt;
    &lt;/components&gt;
  &lt;/autofac&gt;
  </code></pre>
  
  <p>What I need to do is using the connection string I have above this code as the value. The <code>connectionStringName</code> is called <em>MilePointLog</em>.   </p>
  
  <p>Here is the section in my <em>Global.Asax</em> that has the other autofac code.</p>
  
  <pre><code>var builder = new ContainerBuilder();
  builder.RegisterModule(new ConfigurationSettingsReader("autofac"));
  
  builder.RegisterType&lt;Service&gt;()
         .As&lt;IITDMilePointService&gt;().InstancePerRequest();
  //builder.RegisterType&lt;Repository&gt;()
  //       .As&lt;IITDMilepointRepository&gt;()
  //       .WithParameter("connectionString", ConfigurationManager.ConnectionStrings["MilePointLog"].ConnectionString);
  builder.RegisterType&lt;HomeController&gt;()
         .InstancePerRequest();
  </code></pre>
  
  <p>Is what I'm trying to do possible and if so can you tell me how?</p>