Click or drag to resize

IJobManagerServiceSetJobSchedule(IJob, DayOfWeek, DateTime) Method

Schedule a job to start at a specific time with a specific repetition

Namespace: SanteDB.Core.Jobs
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
IJobSchedule SetJobSchedule(
	IJob job,
	DayOfWeek[] daysOfWeek,
	DateTime scheduleTime
)

Parameters

job  IJob
The job to set the schedule for
daysOfWeek  DayOfWeek
The days of the week that the job should start on
scheduleTime  DateTime
The start date of the schedule (note: if daysOfWeek is empty then this is the only run time, otherwise the schedule starts on the Date in the date time at the Time on the date time every day of week)

Return Value

IJobSchedule
The job schedule that has been set
See Also