title: access BackgroundService from controller in asp.net core 2.1
body: <p>I just need to access my <strong>BackgroundService</strong> from a controller.
  Since BackgroundServices are injected with </p>
  
  <pre><code>services.AddSingleton&lt;IHostedService, MyBackgroundService&gt;()
  </code></pre>
  
  <p>How can I use it from a Controller class?</p>