| ThreadWorkerT Class |
Namespace: CMS.Base
public abstract class ThreadWorker<T> : IDisposable where T : new(), ThreadWorker<T>
The ThreadWorkerT type exposes the following members.
| Name | Description | |
|---|---|---|
| ThreadWorkerT |
| Name | Description | |
|---|---|---|
| LOG_MAX_LENGTH |
Maximum length of the worker log to prevent memory leaks
| |
| SyncRoot |
Lock this object when doing actions that might change the result of condition run while stopping execution
|
| Name | Description | |
|---|---|---|
| Current |
Current thread worker object
| |
| DefaultInterval |
Gets the default interval in milliseconds for the worker.
| |
| 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.
| |
| PollThread |
Gets or sets thread which is periodically checking for new tasks.
| |
| ProcessingPaused |
Indicates whether worker routine is temporarily paused.
| |
| UseLogContext |
If true, the thread uses a log context for its operations
|
| Name | Description | |
|---|---|---|
| CreateThreadSettings | ||
| Dispose |
Disposes instance of thread worker.
| |
| Dispose(Boolean) |
Disposes instance of thread worker.
| |
| DoMaintenance |
Runs the maintenance routine for the worker
| |
| EnsureRunningThread |
Ensures a running thread for this processor
| |
| Finish |
Finishes the worker process.
| |
| 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.
| |
| RunProcess |
Runs the internal process of the worker
| |
| StopExecution |
Stops the worker after finishing its job.
|