title: How to pass a parameter to a named services in LightInject?
body: <p>In LightInject,registering a named service goes a s follows:</p>
  
  <pre><code>container.Register&lt;IFoo, Foo&gt;();
  container.Register&lt;IFoo, AnotherFoo&gt;("AnotherFoo");
  var instance = container.GetInstance&lt;IFoo&gt;("AnotherFoo");
  </code></pre>
  
  <p>A service with a parameter:</p>
  
  <pre><code>container.Register&lt;int, IFoo&gt;((factory, value) =&gt; new Foo(value));
  var fooFactory = container.GetInstance&lt;Func&lt;int, IFoo&gt;&gt;();
  var foo = (Foo)fooFactory(42); 
  </code></pre>
  
  <p>How to combine these two together, to have a named service with a parameter passed to a constructor?</p>