ThreadWorkerTStopExecution Method |
Stops the worker after finishing its job.
Namespace: CMS.BaseAssembly: CMS.Base (in CMS.Base.dll) Version: 12.0.0
Syntax protected void StopExecution(
Func<bool> condition = null
)
Parameters
- condition (Optional)
- Type: SystemFuncBoolean
Enables you to cancel stopping the worker by returning false from the function.
Remarks
You should use parameter condition to make sure that it is safe to stop the worker and no data are lost.
See Also