Click or drag to resize
ScoreInfoProviderEnsureScheduledTask Method
Returns existing scheduled task for recalculation or creates new one based on the score info and other settings.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 9.0.0
Syntax
C#
public static TaskInfo EnsureScheduledTask(
	ScoreInfo score,
	string scheduledInterval,
	DateTime nextRunTime,
	bool taskEnabled,
	bool saveNewTask
)

Parameters

score
Type: CMS.OnlineMarketingScoreInfo
Score info
scheduledInterval
Type: SystemString
Scheduled interval string for new task
nextRunTime
Type: SystemDateTime
Next run time for new task
taskEnabled
Type: SystemBoolean
Indicates if new task should be enabled
saveNewTask
Type: SystemBoolean
Indicates if new task should be saved (inserted into DB)

Return Value

Type: TaskInfo
See Also