The ThreadBase type exposes the following members.

Constructors

  NameDescription
Public methodThreadBase(String)
Initializes a new instance of the ThreadBase class
Public methodThreadBase(String, Boolean)
Initializes a new instance of the ThreadBase class
Public methodThreadBase(String, Dispatcher)
Initializes a new instance of the ThreadBase class
Public methodThreadBase(String, Dispatcher, Boolean)
Initializes a new instance of the ThreadBase class

Methods

  NameDescription
Public methodAbort
Notifies the thread to stop working.
Public methodAbortWaitForSeconds
Notifies the thread to stop working and waits for completion for the given ammount of time. When the thread soes not stop after the given timeout the thread will be terminated.
Public methodDispatch(Action)
Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given action.
Public methodDispatch(Task)
Dispatches the given task to the target Dispatcher (default: the main Dispatcher).
Public methodDispatch<(Of <<'(T>)>>)(Func<(Of <<'(T>)>>))
Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given function.
Public methodDispatchAndWait(Action)
Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given action. This method will wait for the task completion.
Public methodDispatchAndWait(Task)
Dispatches the given task to the target Dispatcher (default: the main Dispatcher). This method will wait for the task completion.
Public methodDispatchAndWait(Action, Single)
Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given action. This method will wait for the task completion or the timeout.
Public methodDispatchAndWait(Task, Single)
Dispatches the given task to the target Dispatcher (default: the main Dispatcher). This method will wait for the task completion or the timeout.
Public methodDispatchAndWait<(Of <<'(T>)>>)(Func<(Of <<'(T>)>>))
Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given function. This method will wait for the task completion and returns the return value.
Public methodDispatchAndWait<(Of <<'(T>)>>)(Func<(Of <<'(T>)>>), Single)
Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given function. This method will wait for the task completion or the timeout and returns the return value.
Public methodDispose
Disposes the thread and all resources.
Protected methodDo
Protected methodDoInternal
Public methodExit
Notifies the thread to stop working.
Public methodStart
Starts the thread.

Extension Methods

  NameDescription
Public Extension MethodRunAsync(String, array<Object>[]()[][])Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.)
Public Extension MethodRunAsync(String, TaskDistributor, array<Object>[]()[][])Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.)
Public Extension MethodRunAsync<(Of <<'(T>)>>)(String, array<Object>[]()[][])Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.)
Public Extension MethodRunAsync<(Of <<'(T>)>>)(String, TaskDistributor, array<Object>[]()[][])Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.)

Fields

Properties

  NameDescription
Public propertyStatic memberCurrentThread
Returns the currently ThreadBase instance which is running in this thread.
Public propertyIsAlive
Returns true if the thread is working.
Public propertyShouldStop
Returns true if the thread should stop working.

See Also