title: The best way to implement a docker container in C# with a timer
body: <p>I'm considering using Docker and C# to rewrite an existing system.</p>
  
  <p>The containers will work by scanning a SQL Server queue table for jobs that they can process and then perform the necessary updates for that job.</p>
  
  <p>The queue will be scanned regularly using a Timer object.</p>
  
  <p>The only way I can see to create a Docker process in Visual Studio is to create an ASP.Net Core project and enable Docker in the new project wizard.</p>
  
  <p>I once used a Timer inside a RESTful server but I found that, if there were no HTTP requests for a while, IIS would unload the assemblies and the Timer would stop firing.</p>
  
  <p>My questions are:</p>
  
  <ul>
  <li>Would the container run continuously or would it stop if there were
  no HTTP requests like IIS? </li>
  <li>Is an ASP.Net Core project the way to go for this type of container
  or is there a better way?</li>
  </ul>