ThreadWorkerT Class |
Namespace: CMS.Base
The ThreadWorkerT type exposes the following members.
Name | Description | |
---|---|---|
ThreadWorkerT |
Name | Description | |
---|---|---|
CreateThread |
Creates a worker thread object. Override to modify the thread configuration
| |
DoMaintenance |
Runs the maintenance routine for the worker
| |
EnsureRunningThread |
Ensures a running thread for this processor
| |
Finish |
Finishes the worker process. Implement this method to specify what the worker must do in order to not lose its internal data when being finished. Leave empty if no extra action is required.
| |
Initialize |
Initializes the worker. Runs in the worker thread before the thread processes the first iteration.
| |
IsThreadRunning |
Returns true if the worker thread is currently running
| |
Process |
Method processing actions.
| |
Register |
Registers the worker so that it runs within the system
| |
RegisterInternal |
Registers the worker
| |
Reset |
Resets the worker
| |
ResetInternal |
Resets the worker
| |
Run |
Runs the action.
| |
RunAsync |
Runs the task in an asynchronous thread.
| |
RunMaintenance |
Runs the maintenance routine for the worker if it should run.
| |
RunProcess |
Runs the internal process of the worker
|
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Name | Description | |
---|---|---|
LOG_MAX_LENGTH |
Maximum length of the worker log to prevent memory leaks (100kB by default)
|
Name | Description | |
---|---|---|
Current |
Current thread worker object
| |
DefaultInterval |
Gets the default interval in milliseconds for the worker.
| |
LastRun |
Last run time
| |
Log |
Asynchronous log context used by the worker thread
| |
MaintenanceInterval |
Gets the maintenance interval in milliseconds for the worker. When 0 (default), the maintenance is not performed.
| |
NextMaintenance |
Next maintenance time
| |
PollThread |
Gets or sets thread which is periodically checking for new tasks.
| |
UseLogContext |
If true, the thread uses a log context for its operations
|