Click or drag to resize

UpstreamJobManagerAddJob(IJob, JobStartType) Method

Add a job to the execution manager

Namespace: SanteDB.Client.Upstream.Management
Assembly: SanteDB.Client (in SanteDB.Client.dll) Version: 3.0.2081-alpha+027e4605b77f83de5445cbcd55717223932d2452
Syntax
public 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

Implements

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