title: Dependency injection, inject with parameters
body: <p>I'm using vNext implementation of DI.
  How to pass parameters to constructor?
  For example, i have class: </p>
  
  <pre><code>public class RedisCacheProvider : ICacheProvider
  {
      private readonly string _connectionString;
  
      public RedisCacheProvider(string connectionString)
      {
          _connectionString = connectionString;
      }
      //interface methods implementation...
  }
  </code></pre>
  
  <p>And service register: </p>
  
  <pre><code>services.AddSingleton&lt;ICacheProvider, RedisCacheProvider&gt;();
  </code></pre>
  
  <p>How to pass parameter to constructor of RedisCacheProvider class?
  For example for Autofac:</p>
  
  <pre><code>builder.RegisterType&lt;RedisCacheProvider&gt;()
         .As&lt;ICacheProvider&gt;()
         .WithParameter("connectionString", "myPrettyLocalhost:6379");
  </code></pre>