| 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
)
Public Sub AddJob (
jobObject As IJob,
Optional startType As JobStartType = JobStartType.Immediate
)
public:
virtual void AddJob(
IJob^ jobObject,
JobStartType startType = JobStartType::Immediate
) sealed
abstract AddJob :
jobObject : IJob *
?startType : JobStartType
(* Defaults:
let _startType = defaultArg startType JobStartType.Immediate
*)
-> unit
override AddJob :
jobObject : IJob *
?startType : JobStartType
(* Defaults:
let _startType = defaultArg startType JobStartType.Immediate
*)
-> unit
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 var jobManager = ApplicationServiceContext.Current.GetService<IJobManager>();
jobManager.AddJob(new HelloWorldJob(), startType = JobStartType.Never);
See Also