title: How to make controllers scoped or singleton instead of transient in ASP.NET Core?
body: <p>How to make controllers scoped or singleton instead of transient in ASP.NET Core?</p>
  <p>I now that by default the controllers are registered with the default DI container with the transient lifetime.</p>
  <p>In case I would like to register them with a different lifetime, how could I do that?</p>
  <p>I want to know that solely for the educational purposes, to better wrap my head around the controller types management by the DI container.</p>