Solved

.NET Scheduling Class

Posted on 2008-10-01
3
334 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 55

Expert Comment

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

Author Comment

by:Frosty555
ID: 22625081
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
ID: 22625242
Hello,

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

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

Thanks
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

626 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