Click or drag to resize

IWorkItem Interface

This interface defines a work item that can be queued to the threadpool

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 7.1
Syntax
public interface IWorkItem

The IWorkItem type exposes the following members.

Properties
  NameDescription
Public propertyAllowAbortUponExceedingTimeLimit
Whether to allow aborting the work item when the timelimit exceeded (see MaxBusyTime)
Public propertyIsTerminated
Gets a value indicating whether this object is terminated.
Public propertyMaxBusyTime
The maximum time a workItem may be busy until it is aborted. Must be > 0 to be taken into account.
Public propertyResult
Public propertyTag
A tag that can be freely used to identify a workitem or a group of workitems
Top
Methods
  NameDescription
Public methodHandleWorkItem
This method is called when the work item is processed
Public methodTerminate
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.
Top
Events
  NameDescription
Public eventTerminated
This event is performed if the item's work was aborted before it finished processing. .
Public eventWorkDone
This event is performed if the item's work is finished. .
Top
See Also