Click or drag to resize
TaskInfoProviderFetchTasksToRunInternal Method
Gets scheduled tasks to run, the process is expected to set the next run time for next task iteration.

Namespace: CMS.Scheduler
Assembly: CMS.Scheduler (in CMS.Scheduler.dll) Version: 13.0.131
Syntax
C#
protected virtual InfoDataSet<TaskInfo> FetchTasksToRunInternal(
	string siteName,
	string serverName,
	TaskAvailabilityEnum availability,
	int lastProcessedTaskID,
	Nullable<bool> useExternalService
)

Parameters

siteName
Type: SystemString
Site name
serverName
Type: SystemString
Server name
availability
Type: CMS.SchedulerTaskAvailabilityEnum
Enum value representing type of tasks.
lastProcessedTaskID
Type: SystemInt32
Identifier of last processed task. IDs of all fetched tasks will be higher than this one.
useExternalService
Type: SystemNullableBoolean
Indicates if tasks is processed by service. If null, all tasks are fetched.

Return Value

Type: InfoDataSetTaskInfo
Dataset with information about scheduled tasks
See Also