How to use Func<T> in built-in dependency injection
<p>Using <code>asp.net 5</code> I'd like my controller to be injected with a <code>Func&lt;T&gt;</code>instead of <code>T</code></p>

<p>For example:</p>

<pre class="lang-cs prettyprint-override"><code>public HomeController(Func&lt;Interfaces.IUnitOfWork&gt; uow)
</code></pre>

<p>Instead of</p>

<pre class="lang-cs prettyprint-override"><code>public HomeController(Interfaces.IUnitOfWork uow)
</code></pre>

<p>Is it possible with the built-in DI or am I forced to move to an external DI?</p>