Class WindowsScheduler
- Namespace
- Dynamicweb.Scheduling
- Assembly
- Dynamicweb.Core.dll
Provides methods an properties for managing Windows Scheduled Tasks service.
- Inheritance
-
Windows
Scheduler
- Inherited Members
Methods
EnsureSchedulerIsRunning(string, string, string)
Ensures that the Windows Scheduled Task is running.
Parameters
user
stringName of the user that has permissions to manage Scheduled Tasks.
password
stringUser password.
domain
stringDomain that the user belogs to.
FindTaskLastRunDate(string, string, string)
Retrieves the scheduled task last run time if it was found.
Parameters
user
stringName of the user that has permissions to manage Scheduled Tasks.
password
stringUser password.
domain
stringDomain that the user belogs to.
Returns
- Date
Time ? Date when Windows Scheduled Task was last executed or null if the task cannot be found.
StopScheduler(string, string, string)
Shuts down the Windows Scheduled Task.