Configure time scheduler using C #

I need to design / implement a time scheduler where I can create all possible time scenarios.

eg.

1) the timer should be able to start at certain intervals

2) the user should be able to determine specific dates.

3) the user can define a daily task, excluding specific days or dates (for example, every day except Tuesday).

.....

And basically, the user should be able to identify any possible (crazy :)) scenario. Is there a ready-made solution for implementing this? In C #, you can set timers to fire periodically or on a specific date, but are there methods to combine these functions? I'm basically looking for something like "Schedule Tasks" on Windows

+3
source share
1 answer

You should definitely check out WF ; Windows Workflow Foundation

Workflow Scheduler services control how workflow instances are scheduled to workflow execution mechanisms, regardless of whether they are processed in asynchronous or manual synchronous mode. WF provides two ready for WorkflowSchedulerService

great tutorial here: Windows Workflow Foundation: Using Schedules

+2
source

Source: https://habr.com/ru/post/1792171/


All Articles