Click or drag to resize

DefaultJobManagerServiceAddJob Method (IJob, JobStartType)

Add a job to the execution manager

Namespace:  SanteDB.Core.Jobs
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
public void AddJob(
	IJob jobObject,
	JobStartType startType = JobStartType.Immediate
)

Parameters

jobObject
Type: SanteDB.Core.JobsIJob

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

startType (Optional)
Type: SanteDB.Core.JobsJobStartType
The type of start the job should take

Implements

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