Frosty555
asked on
.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(oTrigg er1)
oSched.Triggers.Add(oTrigg er2)
>>> in a timer somewhere <<<
If oSched.Check() Then
' Perform the task the schedule was meant for
Shell("mytask.exe")
oSched.Snooze()
End If
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(oTrigg
oSched.Triggers.Add(oTrigg
>>> in a timer somewhere <<<
If oSched.Check() Then
' Perform the task the schedule was meant for
Shell("mytask.exe")
oSched.Snooze()
End If
ASKER
Like I said, I'm not looking for code that manipulates the windows task scheduler.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.codeproject.com/KB/cs/tsnewlib.aspx