title: Unity: Implicit ResolvedParameter for unnamed registrations
body: <p>The <code>UserService</code> constructor has two parameters, a <code>IUnitOfWork</code> and a <code>IUserRepository</code>:</p>
  
  <pre><code>public UserService(IUnitOfWork unitofWork, IUserRepository userRepository) 
  { ... }
  </code></pre>
  
  <p>I am using <a href="http://msdn.microsoft.com/en-us/library/ff660853%28v=pandp.20%29.aspx">named registrations</a> to differentiate between multiple instances of <code>IUnitOfWork</code>, so when registering the <code>UserService</code> with the Unity container, I need to explicitly specify the parameters using an <code>InjectionConstructor</code>:</p>
  
  <pre><code>container.RegisterType&lt;IUserService, UserService&gt;(
      new InjectionConstructor(
          new ResolvedParameter&lt;IUnitOfWork&gt;("someContext"),
          new ResolvedParameter&lt;IUserRepository&gt;()
      )
  );
  </code></pre>
  
  <p><strong>Is it possible for <code>new ResolvedParameter&lt;IUserRepository&gt;()</code> to be omitted?  I would like Unity to implicitly deduce this parameter since there is no need for a named registration.</strong>  The code would look like this:</p>
  
  <pre><code>container.RegisterType&lt;IUserService, UserService&gt;(
      new InjectionConstructor(
          new ResolvedParameter&lt;IUnitOfWork&gt;("someContext")
      )
  );
  </code></pre>
  
  <p>This would be done is any case when I don't need to use the <code>InjectionConstructor</code>.</p>