This interface defines a work item that can be queued to the threadpool
| C# | Visual Basic | Visual C++ |
public interface IWorkItem
Public Interface IWorkItem
public interface class IWorkItem
| All Members | Methods | Properties | Events | ||
| Icon | Member | Description |
|---|---|---|
| AllowAbortUponExceedingTimeLimit |
Whether to allow aborting the work item when the timelimit exceeded (see MaxBusyTime)
| |
| HandleWorkItem()()() |
This method is called when the work item is processed
| |
| Result |
The result of the operation performed in HandleWorkItem()()(), may be null
| |
| Tag |
A tag that can be freely used to identify a thread or a group of threads
| |
| Terminate()()() |
Set the state of the item to denote that it has been terminated before it finished
processing, the implementation of this method should issue the Terminated event.
| |
| Terminated |
This event is performed if the item's work was aborted before it finished processing.
.
| |
| WorkDone |
This event is performed if the item's work is finished.
.
|