CMSThread MembersKentico 8.0 API Reference
The CMSThread type exposes the following members.
Constructors

  NameDescription
Public methodCMSThread
Constructor.
Back to Top
Methods

  NameDescription
Public methodAbort
Aborts the thread execution.
Public methodStatic memberAllowEmptyContext
Allows anonymous thread to use new dedicated context in subsequent calls. Call this method in case the anonymous thread isn't initiated from a request thread, or in case you want to start with an empty thread context on purpose.
Protected methodCloseThreadContext
Closes the thread context.
Public methodDispose
Disposes the thread object.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodStatic memberGetCurrentThreadId
Gets the current thread ID
Public methodGetDuplicityKey
Gets the duplicity key for the worker to eliminate duplicit queued workers.
(Inherited from AbstractWorker.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodStatic memberGetThread
Finds the thread based on the given GUID.
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOpenThreadContext
Opens the thread context.
Protected methodRaiseStop
Raises OnStop event.
(Inherited from AbstractWorker.)
Public methodRun
Runs the action.
(Overrides AbstractWorker Run .)
Public methodRunAsync
Runs the worker as a new thread.
(Overrides AbstractWorker RunAsync .)
Public methodStart
Starts the thread.
Public methodStop
Stops the thread execution.
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodStatic memberWaitForSequence
Waits for the current sequence thread to terminate
Public methodStatic memberWrap(Action, Boolean)
Wraps the given method into CMSThread context
Public methodStatic memberWrap T (Action T , Boolean)
Wraps the given method into CMSThread context
Public methodStatic memberWrap T1, T2 (Action T1, T2 , Boolean)
Wraps the given method into CMSThread context
Public methodStatic memberWrapFunc TResult (Func TResult , Boolean)
Wraps the given method into CMSThread context
Public methodStatic memberWrapFunc T1, TResult (Func T1, TResult , Boolean)
Wraps the given method into CMSThread context
Back to Top
Extension Methods

  NameDescription
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.)
Back to Top
Fields

  NameDescription
Public fieldStatic memberABORT_REASON_STOP
Thread was stopped by the user.
Back to Top
Properties

  NameDescription
Public propertyAllowAsyncActions
Indicates if new threads can be created within this thread. (By default no new threads are created.)
Public propertyCancel
If true, the worker is cancelled (doesn't execute)
(Inherited from AbstractWorker.)
Public propertyConnectionString
Connection string name that the thread should use to access the database
Public propertyInnerThread
Worker object.
Protected propertyItems
Thread items that this thread uses
Public propertyLog
Logs for long running operations.
Public propertyMethodClassName
Name of the class which is running the thread actions.
Public propertyMethodName
Name of the method which is running the thread actions.
Public propertyMode
If true, the thread runs synchronously
Public propertyRequestUrl
Request URL which created the thread.
Public propertyRunInSequence
If true, the thread is a part of the sequence and should perform the actions after the previous thread finishes.
(Inherited from AbstractWorker.)
Public propertyStatic memberRunningThreads
Counter of running Threads.
Public propertyThreadFinished
Time when the thread finished.
Public propertyThreadGUID
Thread GUID.
Public propertyThreadID
Thread ID.
Public propertyThreadStarted
Time when the thread started.
Back to Top
Events

  NameDescription
Public eventOnStop
Raised when worker finishes.
(Inherited from AbstractWorker.)
Back to Top
See Also