Click or drag to resize
EventLogWorker Class
Asynchronous thread running in background which logs the events to the event log
Inheritance Hierarchy
SystemObject
  CMS.BaseThreadWorkerEventLogWorker
    CMS.BaseThreadQueueWorkerEventLogInfo, EventLogWorker
      CMS.EventLogEventLogWorker

Namespace: CMS.EventLog
Assembly: CMS.EventLog (in CMS.EventLog.dll) Version: 9.0.0
Syntax
C#
public sealed class EventLogWorker : ThreadQueueWorker<EventLogInfo, EventLogWorker>

The EventLogWorker type exposes the following members.

Constructors
  NameDescription
Public methodEventLogWorker
Top
Properties
  NameDescription
Protected propertyDefaultInterval
Gets the interval in milliseconds for the worker (default 100ms)
(Overrides ThreadWorkerTDefaultInterval.)
Protected propertyCheckDuplicity
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.)
Protected propertyLastRun
Last run time
(Inherited from ThreadWorkerT.)
Protected propertyMaintenanceInterval
Gets the maintenance interval in milliseconds (default 10s)
(Overrides ThreadWorkerTMaintenanceInterval.)
Protected propertyNextMaintenance
Next maintenance time
(Inherited from ThreadWorkerT.)
Protected propertyPollThread
Gets or sets thread which is periodically checking for new tasks.
(Inherited from ThreadWorkerT.)
Protected propertyUseLogContext
Use the log context to report status
(Overrides ThreadWorkerTUseLogContext.)
Top
Methods
  NameDescription
Protected methodAbortInternal
Aborts the worker and clears the queue
(Inherited from ThreadQueueWorkerTItem, TWorker.)
Protected methodCreateThread
Creates a worker thread object. Override to modify the thread configuration
(Inherited from ThreadWorkerT.)
Protected methodDequeue
Returns the first item in the queue and removes it
(Inherited from ThreadQueueWorkerTItem, TWorker.)
Protected methodDoMaintenance
Reports the status to the thread log
(Overrides ThreadWorkerTDoMaintenance.)
Protected methodFinish
Finishes processing all the items remaining in the worker queue
(Overrides ThreadWorkerTFinish.)
Protected methodInitialize
Initializes the worker. Runs in the worker thread before the thread processes the first iteration.
(Overrides ThreadWorkerTInitialize.)
Protected methodProcess
Method processing queues actions.
(Inherited from ThreadQueueWorkerTItem, TWorker.)
Protected methodProcessItem
Processes the item in the queue
(Overrides ThreadQueueWorkerTItem, TWorkerProcessItem(TItem).)
Protected methodProcessItems
Processes the items in the queue
(Overrides ThreadQueueWorkerTItem, TWorkerProcessItems(IEnumerableTItem).)
Protected methodRegisterInternal
Registers the worker
(Inherited from ThreadWorkerT.)
Protected methodResetInternal Obsolete.
Resets the worker and clears the queue
(Inherited from ThreadQueueWorkerTItem, TWorker.)
Protected methodRun
Runs the action.
(Inherited from ThreadWorkerT.)
Protected methodRunAsync
Runs the task in an asynchronous thread.
(Inherited from ThreadWorkerT.)
Protected methodRunMaintenance
Runs the maintenance routine for the worker if it should run.
(Inherited from ThreadWorkerT.)
Protected methodRunProcess
Runs the internal process of the worker
(Inherited from ThreadWorkerT.)
Top
See Also