title: .NET Core BackgroundService Run Only Once
body: <p>I am creating a .net core BackgroundService console application. The default template provides a Worker class that has ExecuteAsync() method, which is great.</p>
  <p>My plan is to use a Windows Task Scheduler to schedule to execute the console app once a day. However, I realized the ExecuteAsync() is a continuously executing method. So my question is -- how do I execute the codes in ExecuteAsync() only once and then terminate the Worker? I might have other processes still running, so each individual process needs to run once and terminate itself.</p>
  <p>Or is BackgroundService not the best choice for me?</p>