title: Manual controller registration in ASP.NET Core dependency injection
body: <p>I need to override ASP.NET Core's default registration for a certain controller.</p>
  
  <p>I've tried the below, but it resolves <code>MyController</code> from the automatic registration.</p>
  
  <pre><code>services.AddTransient((provider) =&gt; new MyController(...));
  </code></pre>
  
  <p>How can I override this?</p>