title: C# auto scheduler
body: <p>I have a database which have columns for process name and time. I have a windows service which have a list of process name and time fetched from DB and now want to trigger that process on that specific time. Is there a way that I can trigger these processes(methods) for list of scheduled time by itself?</p>
  
  <p>This is what I tried so far..I want to run report method to get trigger at different time events as my schedule list e.g. 10:00 AM, 12:20 pm, 1:45 pm...etc once my windows service is running.</p>
  
  <pre><code>public override void Run()
      {
      var _dateNow = DateTime.Now();
          _schedule = scheduleProvider.GetSchedules();
  
          foreach (ProcessEngineSchedule sc in _schedule)
          {
              if (_dateNow.Hour == sc.Time.Hour &amp;&amp; _dateNow.Minute == sc.Time.Minute)
              {
                  RunReport();
              }
          }
      }
  </code></pre>