Solved

.NET Scheduling Class

Posted on 2008-10-01
3
328 Views
Last Modified: 2013-11-07
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
0
Comment
Question by:Frosty555
3 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
Comment Utility
have a look to this great article:
http://www.codeproject.com/KB/cs/tsnewlib.aspx
0
 
LVL 31

Author Comment

by:Frosty555
Comment Utility
Like I said, I'm not looking for code that manipulates the windows task scheduler.
0
 
LVL 2

Accepted Solution

by:
jvulliet earned 500 total points
Comment Utility
Hello,

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

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

Thanks
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Okay. So what exactly is the problem here? How often have we come across situations where we need to know if two strings are 'similar' but not necessarily the same? I have, plenty of times. Until recently, I thought any functionality like that wo…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now