Click or drag to resize

IJobManagerServiceAddJob(IJob, JobStartType) Method

Add a job to the execution manager

Namespace: SanteDB.Core.Jobs
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
void AddJob(
	IJob jobType,
	JobStartType startType = JobStartType.Immediate
)

Parameters

jobType  IJob
The type of job to add
startType  JobStartType  (Optional)
The type of start the job should take
Example
C#
var jobManager = ApplicationServiceContext.Current.GetService<IJobManager>();
jobManager.AddJob(new HelloWorldJob(), startType = JobStartType.Never);
See Also