ScoreInfoProviderEnsureScheduledTask Method |
Returns existing scheduled task for recalculation or creates new one based on the score info and other settings.
Namespace: CMS.ContactManagementAssembly: CMS.ContactManagement (in CMS.ContactManagement.dll) Version: 12.0.0
Syntax public static TaskInfo EnsureScheduledTask(
ScoreInfo score,
string scheduledInterval,
DateTime nextRunTime,
bool taskEnabled,
bool saveNewTask
)
Parameters
- score
- Type: CMS.ContactManagementScoreInfo
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:
TaskInfoSee Also