The CMSThread type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
CMSThread |
Constructor.
|
Methods
Name | Description | |
---|---|---|
Abort |
Aborts the thread execution.
| |
AllowEmptyContext |
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.
| |
CloseThreadContext |
Closes the thread context.
| |
Dispose |
Disposes the thread object.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetCurrentThreadId |
Gets the current thread ID
| |
GetDuplicityKey |
Gets the duplicity key for the worker to eliminate duplicit queued workers.
(Inherited from AbstractWorker.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetThread |
Finds the thread based on the given GUID.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OpenThreadContext |
Opens the thread context.
| |
RaiseStop |
Raises OnStop event.
(Inherited from AbstractWorker.) | |
Run |
Runs the action.
(Overrides AbstractWorker Run .) | |
RunAsync |
Runs the worker as a new thread.
(Overrides AbstractWorker RunAsync .) | |
Start |
Starts the thread.
| |
Stop |
Stops the thread execution.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WaitForSequence |
Waits for the current sequence thread to terminate
| |
Wrap(Action, Boolean) |
Wraps the given method into CMSThread context
| |
Wrap T (Action T , Boolean) |
Wraps the given method into CMSThread context
| |
Wrap T1, T2 (Action T1, T2 , Boolean) |
Wraps the given method into CMSThread context
| |
WrapFunc TResult (Func TResult , Boolean) |
Wraps the given method into CMSThread context
| |
WrapFunc T1, TResult (Func T1, TResult , Boolean) |
Wraps the given method into CMSThread context
|
Extension Methods
Name | Description | |
---|---|---|
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.) |
Fields
Name | Description | |
---|---|---|
ABORT_REASON_STOP |
Thread was stopped by the user.
|
Properties
Name | Description | |
---|---|---|
AllowAsyncActions |
Indicates if new threads can be created within this thread. (By default no new threads are created.)
| |
Cancel |
If true, the worker is cancelled (doesn't execute)
(Inherited from AbstractWorker.) | |
ConnectionString |
Connection string name that the thread should use to access the database
| |
InnerThread |
Worker object.
| |
Items |
Thread items that this thread uses
| |
Log |
Logs for long running operations.
| |
MethodClassName |
Name of the class which is running the thread actions.
| |
MethodName |
Name of the method which is running the thread actions.
| |
Mode |
If true, the thread runs synchronously
| |
RequestUrl |
Request URL which created the thread.
| |
RunInSequence |
If true, the thread is a part of the sequence and should perform the actions after the previous thread finishes.
(Inherited from AbstractWorker.) | |
RunningThreads |
Counter of running Threads.
| |
ThreadFinished |
Time when the thread finished.
| |
ThreadGUID |
Thread GUID.
| |
ThreadID |
Thread ID.
| |
ThreadStarted |
Time when the thread started.
|
Events
Name | Description | |
---|---|---|
OnStop |
Raised when worker finishes.
(Inherited from AbstractWorker.) |
See Also