Hello. I have a small class library, each implementing the ITask interface:
I'm looking to allow my user to schedule these tasks. Basically a big list of tasks.. each one on it's own thread.
psuedo: If Now >= startTime and Now <= stopTime, Threading.Thread.Sleep(task.execute())
What controls could I use to make the scheduling look neat? How would I go about with the actual threading part? Would I need to add a Thread property to my ITask interface?
Code:
Public Interface ITask
Property StartTime As DateTime
Property StopTime As DateTime
Property RunFrequency As TimeSpan
Sub Start()
Function Execute() As Integer
Sub Finish()
End Interfacepsuedo: If Now >= startTime and Now <= stopTime, Threading.Thread.Sleep(task.execute())
What controls could I use to make the scheduling look neat? How would I go about with the actual threading part? Would I need to add a Thread property to my ITask interface?