How to apply decorators with ASP.NET Core Dependency Injection
<p>On an ASP.NET MVC 5 application I have the following StructureMap configuration:</p>

<pre class="lang-cs prettyprint-override"><code>cfg.For(typeof(IRequestHandler&lt;,&gt;)).DecorateAllWith(typeof(MediatorPipeline&lt;,&gt;));
</code></pre>

<p>Does anyone know how to do this configuration with ASP.NET Core IOC?</p>