Class WindowsScheduler
- Namespace
- Dynamicweb.Scheduling
- Assembly
- Dynamicweb.Core.dll
Provides methods an properties for managing Windows Scheduled Tasks service.
public class WindowsScheduler
- Inheritance
-
WindowsScheduler
- Inherited Members
Methods
EnsureSchedulerIsRunning(string, string, string)
Ensures that the Windows Scheduled Task is running.
public static void EnsureSchedulerIsRunning(string user, string password, string domain)
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.
public static DateTime? FindTaskLastRunDate(string user, string password, string domain)
Parameters
user
stringName of the user that has permissions to manage Scheduled Tasks.
password
stringUser password.
domain
stringDomain that the user belogs to.
Returns
- DateTime?
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.
public static void StopScheduler(string user, string password, string domain)