Click or drag to resize

DefaultJobManagerServiceAddJob(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
public void AddJob(
	IJob jobObject,
	JobStartType startType = JobStartType.Immediate
)

Parameters

jobObject  IJob

[Missing <param name="jobObject"/> documentation for "M:SanteDB.Core.Jobs.DefaultJobManagerService.AddJob(SanteDB.Core.Jobs.IJob,SanteDB.Core.Jobs.JobStartType)"]

startType  JobStartType  (Optional)
The type of start the job should take

Implements

IJobManagerServiceAddJob(IJob, JobStartType)
Example
C#
var jobManager = ApplicationServiceContext.Current.GetService&lt;IJobManager>();
jobManager.AddJob(new HelloWorldJob(), startType = JobStartType.Never);
See Also