title: Visual Studio cannot find SingleInstanceFactory
body: <p>I've missed something, but not sure.</p>
  
  <p>I have included <code>using MediatR;</code></p>
  
  <p>and I am trying to register types using Unity:</p>
  
  <pre><code>//--------- External Dependencies --------\\
  container.RegisterType&lt;IMediator, Mediator&gt;();
  
  
  container.RegisterInstance&lt;SingleInstanceFactory&gt;(t =&gt; container.Resolve(t));
  container.RegisterInstance&lt;MultiInstanceFactory&gt;(t =&gt; container.ResolveAll(t));
  </code></pre>
  
  <p>But VS is telling me it can't find <code>SingleInstanceFactory</code> or <code>MultiInstanceFactory</code>. The project is targeting .NET 4.5.1 and I am using the latest Unity, MediatR.</p>
  
  <p>Latest MediatR, <a href="https://github.com/jbogard/MediatR/blob/master/src/MediatR/Mediator.cs" rel="nofollow">https://github.com/jbogard/MediatR/blob/master/src/MediatR/Mediator.cs</a></p>
  
  <p>I was just copying from the examples give by Jimmy.</p>