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: 8.2.23
Syntax
C#
public sealed class EventLogWorker : ThreadQueueWorker<EventLogInfo, EventLogWorker>

The EventLogWorker type exposes the following members.

Constructors
  NameDescription
Public methodEventLogWorker
Top
Methods
  NameDescription
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
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
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
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
See Also