IWork |
The IWorkItem type exposes the following members.
| Name | Description | |
|---|---|---|
| AllowAbortUponExceedingTimeLimit | Whether to allow aborting the work item when the timelimit exceeded (see MaxBusyTime) | |
| IsTerminated | Gets a value indicating whether this object is terminated. | |
| MaxBusyTime | The maximum time a workItem may be busy until it is aborted. Must be > 0 to be taken into account. | |
| Result | The result of the operation performed in HandleWorkItem, may be null | |
| Tag | A tag that can be freely used to identify a workitem or a group of workitems |
| Name | Description | |
|---|---|---|
| HandleWorkItem | This method is called when the work item is processed | |
| 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. |
| Name | Description | |
|---|---|---|
| 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. . |