title: Running a method every hour in the background C#
body: <p>I'm writing a web-api and I plan on storing "sessions" of data in there. I want to call a method every hour to make sure that inactive sessions are ended.</p>
  
  <p>The Database contains 3 timestamp fields. Session_Start, Session_End and Last_Activity. Everytime data in the session is updated, the Last_activity field updates. </p>
  
  <p>I wrote a method to end inactive sessions, but how do I call that method every hour in the background, without interfering with the functionality of the webapi (how do I run the code in the background and still allow people to use the webapi)?</p>