.NET Scheduling Class

Has anyone heard of a generic scheduling class written in .NET?

I don't mean something that manipulates the windows task scheduler. I'm talking about a more generic scheduling engine that can be used to define schedules in all the various complex ways that users have come to expect (like hourly, daily, on certain days of the week, at certain times, on the last friday of every Xth month etc.), and then check whether those schedules are due to be executed.

I'm imagining some pseudo code for it's usage would go like this:

Dim oSchedEng as New SchedulerEngine()
Dim oSched as Schedule = oSchedEng.CreateSchedule()

Dim oTrigger1 as New Trigger(HOURLY, ONTHEHOUR)
Dim oTrigger2 as New Trigger(WEEKLY, MON or WED)

oSched.Triggers.Add(oTrigger1)
oSched.Triggers.Add(oTrigger2)


>>> in a timer somewhere <<<
      If oSched.Check() Then
            ' Perform the task the schedule was meant for
            Shell("mytask.exe")
            oSched.Snooze()
      End If
LVL 31
Frosty555Asked:
Who is Participating?
 
jvullietConnect With a Mentor Commented:
Hello,

you can look at the Quartz library
http://quartznet.sourceforge.net/

Features page:
http://quartznet.sourceforge.net/features.html

Thanks
0
 
Jaime OlivaresSoftware ArchitectCommented:
have a look to this great article:
http://www.codeproject.com/KB/cs/tsnewlib.aspx
0
 
Frosty555Author Commented:
Like I said, I'm not looking for code that manipulates the windows task scheduler.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.