IJobManagerRunSync(JobDefinition, Type, CancellationTokenSource) Method |
Runs synchronously a given job with a specific type of job executor using its default profile. The default scan controller will be the first listed in the job.
If job contains multiple scan controllers, it will be executed sequentially. Use
RunAsync(JobDefinition, Type, CancellationTokenSource) for parallel execution.
Namespace: RAYLASE.Marker.JobAssembly: RAYLASE.Marker.Job (in RAYLASE.Marker.Job.dll) Version: 2.19.0
Syntaxvoid RunSync(
JobDefinition jobDefinition,
Type jobExecutorType,
CancellationTokenSource cancellationTokenSource = null
)
Parameters
- jobDefinition JobDefinition
- The job definition.
- jobExecutorType Type
- The type of the executor.
- cancellationTokenSource CancellationTokenSource (Optional)
- TokenSource for canceling the execution. This will stop the execution after the current job element is processed. For aborting the current job element call AbortExecution(Boolean).
ExceptionsException | Condition |
---|
KeyNotFoundException | Job executor type is not valid. |
See Also