EventLogWorker Class |
Namespace: CMS.EventLog
public sealed class EventLogWorker : ThreadQueueWorker<EventLogInfo, EventLogWorker>
The EventLogWorker type exposes the following members.
Name | Description | |
---|---|---|
EventLogWorker |
Name | Description | |
---|---|---|
CreateThread |
Creates a worker thread object. Override to modify the thread configuration
(Inherited from ThreadWorkerT.) | |
Dequeue |
Returns the first item in the queue and removes it
(Inherited from ThreadQueueWorkerTItem, TWorker.) | |
DoMaintenance |
Reports the status to the thread log
(Overrides ThreadWorkerTDoMaintenance.) | |
Finish |
Finishes processing all the items remaining in the worker queue
(Overrides ThreadWorkerTFinish.) | |
Initialize |
Initializes the worker. Runs in the worker thread before the thread processes the first iteration.
(Overrides ThreadWorkerTInitialize.) | |
Process |
Method processing queues actions.
(Inherited from ThreadQueueWorkerTItem, TWorker.) | |
ProcessItem |
Processes the item in the queue
(Overrides ThreadQueueWorkerTItem, TWorkerProcessItem(TItem).) | |
ProcessItems |
Processes the items in the queue
(Overrides ThreadQueueWorkerTItem, TWorkerProcessItems(IEnumerableTItem).) | |
RegisterInternal |
Registers the worker
(Inherited from ThreadWorkerT.) | |
ResetInternal |
Resets the worker and clears the queue
(Inherited from ThreadQueueWorkerTItem, TWorker.) | |
Run |
Runs the action.
(Inherited from ThreadWorkerT.) | |
RunAsync |
Runs the task in an asynchronous thread.
(Inherited from ThreadWorkerT.) | |
RunMaintenance |
Runs the maintenance routine for the worker if it should run.
(Inherited from ThreadWorkerT.) | |
RunProcess |
Runs the internal process of the worker
(Inherited from ThreadWorkerT.) |
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 | |
---|---|---|
DefaultInterval |
Gets the interval in milliseconds for the worker (default 100ms)
(Overrides ThreadWorkerTDefaultInterval.) | |
CheckDuplicity |
If true, the queue checks the duplicity when inserting items. The duplicity is checked using the default comparer of the item.
(Inherited from ThreadQueueWorkerTItem, TWorker.) | |
LastRun |
Last run time
(Inherited from ThreadWorkerT.) | |
MaintenanceInterval |
Gets the maintenance interval in milliseconds (default 10s)
(Overrides ThreadWorkerTMaintenanceInterval.) | |
NextMaintenance |
Next maintenance time
(Inherited from ThreadWorkerT.) | |
PollThread |
Gets or sets thread which is periodically checking for new tasks.
(Inherited from ThreadWorkerT.) | |
UseLogContext |
Use the log context to report status
(Overrides ThreadWorkerTUseLogContext.) |