IWebFarmServiceRegisterTaskT Method (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<T>(
bool isMemoryTask = false,
WebFarmTaskOptimizeActionEnum webFarmTaskOptimize = WebFarmTaskOptimizeActionEnum.None
)
where T : new(), WebFarmTaskBase
Parameters
- 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.
Type Parameters
- T
Exceptions
See Also