Click or drag to resize
CMSWorkerQueue Class
Queue of the workers.
Inheritance Hierarchy
SystemObject
  System.Collections.GenericQueueAbstractWorker
    CMS.BaseCMSWorkerQueue

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 8.2.23
Syntax
C#
public class CMSWorkerQueue : Queue<AbstractWorker>, 
	INotCopyThreadItem

The CMSWorkerQueue type exposes the following members.

Constructors
  NameDescription
Public methodCMSWorkerQueue
Top
Methods
  NameDescription
Protected methodAddWorker
Adds the given worker to the queue.
Protected methodCheckWait
Returns true if the queue processing should wait
Public methodStatic memberQueueWorker(AbstractWorker)
Adds the given worker to the queue for current request. The workers get executed upon the end of current request or thread or explicit call to RunQueuedWorkers.
Public methodStatic memberQueueWorker(Action, String)
Adds given action to the CMSWorkerQueue as an ActionWorker.
Public methodRunAll
Runs all the workers.
Public methodStatic memberRunCurrentQueuedWorkers
Runs the workers queued in current request.
Public methodStatic memberRunGlobalQueuedWorkers
Runs the global queued workers
Protected methodRunThreadsWaiting
Runs the threads waiting for the execution of the next allowed threads
Protected methodRunWorkers
Runs the threads in current instance
Protected methodworker_OnStop
Handles worker's OnStop event.
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
Fields
  NameDescription
Protected fieldmDuplicities
Table of existing duplicity keys for current queue.
Protected fieldmRunningCount
Number of running threads
Protected fieldmTotalRunningCount
Number of running threads from all queues
Top
Properties
  NameDescription
Protected propertyClosed
If true, the queue is already closed.
Protected propertyDuplicities
Table of existing duplicity keys for current queue.
Public propertyStatic memberGlobal
Gets the global worker queue.
Public propertyStatic memberInstance
Gets or sets current worker queue.
Public propertyParameters
Gets or sets parameters of the queue, parameters are indexed by their name.
Public propertyRunInSeparateThread
If true, the worker queue set to run workers synchronously runs in a single separate thread.
Public propertyRunningCount
Number of currently running workers.
Public propertyRunWorkersSynchronously
If true, the worker queue executes the workers one by one synchronously
Public propertyTotalRunningCount
Number of currently running workers from all queues.
Top
See Also