The TestEnvironmentAwareThreadTask type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| TestEnvironmentAwareThreadTask | Overloaded. |
Methods
| Name | Description | |
|---|---|---|
| Abort |
Asynchronously aborts the task.
(Inherited from Task.) | |
| AbortImpl |
Aborts the task.
(Inherited from ThreadTask.) | |
| AfterTask |
Performs an action within the thread after the task's main action runs.
(Overrides ThreadTask..::.AfterTask()()().) | |
| BeforeTask |
Performs an action within the thread before the task's main action runs.
(Overrides ThreadTask..::.BeforeTask()()().) | |
| Equals |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Join |
Waits for the task to terminate.
(Inherited from Task.) | |
| JoinImpl |
Waits for the task to terminate.
(Inherited from ThreadTask.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| NotifyTerminated |
Dispatches notification that the task has terminated and provides its result.
(Inherited from Task.) | |
| OnAborted |
Notifies the Aborted event handlers.
(Inherited from Task.) | |
| OnStarted |
Notifies the Started event handlers.
(Inherited from Task.) | |
| OnTerminated |
Notifies the Terminated event handlers.
(Inherited from Task.) | |
| Run |
Starts the task and waits for it to complete until the timeout expires.
If the timeout expires, aborts the task and returns false.
(Inherited from Task.) | |
| Start |
Starts running the task.
(Inherited from Task.) | |
| StartImpl |
Starts the task.
(Inherited from ThreadTask.) | |
| ToString |
Returns a String that represents the current Object.
(Inherited from Object.) |
Extension Methods
| Name | Description | |
|---|---|---|
| Format | Overloaded. |
Properties
| Name | Description | |
|---|---|---|
| ApartmentState |
Gets or sets the desired ApartmentState to use for
the thread when it is started.
(Inherited from ThreadTask.) | |
| IsAborted |
Returns true if the task has been aborted.
(Inherited from Task.) | |
| IsPending |
Returns true if the task has not been started or aborted yet.
(Inherited from Task.) | |
| IsRunning |
Returns true if the task is running.
(Inherited from Task.) | |
| IsTerminated |
Returns true if the task ran and was terminated.
(Inherited from Task.) | |
| Name |
Gets the name of the task.
(Inherited from Task.) | |
| Result |
Gets the task result, or null if the task has not terminated or was aborted before starting.
(Inherited from Task.) | |
| Thread |
Gets the thread on which the task is running, or null if the
task is not running.
(Inherited from ThreadTask.) |
Events
| Name | Description | |
|---|---|---|
| Aborted |
Adds or removes an event handler that is signaled when the task is aborted.
If a handler is being added and the task has already aborted, it is immediately invoked.
(Inherited from Task.) | |
| Started |
Adds or removes an event handler that is signaled when the task is started.
If a handler is being added and the task has already started, it is immediately invoked.
(Inherited from Task.) | |
| Terminated |
Adds or removes an event handler that is signaled when the task is terminated.
If a handler is being added and the task has already terminated, it is immediately invoked.
(Inherited from Task.) |
