IWebFarmServiceRegisterTask Method (Type, Boolean, WebFarmTaskOptimizeActionEnum) |
Registers a new web farm task type to allow its processing within the system. The type must inherit
WebFarmTaskBase.
Namespace: CMS.CoreAssembly: CMS.Core (in CMS.Core.dll) Version: 12.0.0
Syntaxvoid RegisterTask(
Type taskType,
bool isMemoryTask = false,
WebFarmTaskOptimizeActionEnum webFarmTaskOptimize = WebFarmTaskOptimizeActionEnum.None
)
Parameters
- taskType
- Type: SystemType
The type of task to register. - isMemoryTask (Optional)
- Type: SystemBoolean
Indicates if the task modifies memory only. Memory tasks can be deleted on application start. - webFarmTaskOptimize (Optional)
- Type: CMS.CoreWebFarmTaskOptimizeActionEnum
Determines type of optimization which is used for reducing number of generated web farm tasks of particular type.
Exceptions
See Also