Link to home
Start Free TrialLog in
Avatar of Frosty555
Frosty555Flag for Canada

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(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
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

have a look to this great article:
http://www.codeproject.com/KB/cs/tsnewlib.aspx
Avatar of Frosty555

ASKER

Like I said, I'm not looking for code that manipulates the windows task scheduler.
ASKER CERTIFIED SOLUTION
Avatar of jvulliet
jvulliet

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial