title: How do I inject my own classes into controllers in ASP.NET MVC Core?
body: <p>I created my own class for user management called <code>UserManager</code>. I want controllers to have access to a <code>UserManager</code> object to sign in or register users.</p>
  
  <p>I understand that I have to provide a parameterized constructor in the controller class that takes an object of <code>UserManager</code> and assigns it to a private attribute etc.</p>
  
  <p>But <strong>where</strong> and <strong>how</strong> do I register my class in my project so that it will be injected automatically by the ASP.NET MVC Core framework?</p>