Solved

.NET Scheduling Class

Posted on 2008-10-01
3
333 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

738 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