The WorkItem type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
WorkItem | Creates a new instance.
|
Methods
Name | Description | |
---|---|---|
Dispose | Frees up resources.
| |
Dispose(Boolean) | Override this method to release unmanaged and - optionally - managed resources.
| |
Equals |
Determines whether the specified obj is the same instance as the current work item.
(Overrides Object Equals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type.
(Overrides Object GetHashCode .) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PushResultHandler TItem |
Adds a result handler to the top of the stack of result handlers.
The handler must call ReturnItem when it is finished with the work item.
| |
ReadModel TModel |
Allows reading the associated worker model in a thread-safe way.
| |
ReturnItem | Signals that a worker or result handler is finished with the work item.
The method then passes the work item to the next handler in the stack.
| |
SetImmutableResult |
Sets the immutable result.
|
Properties
Name | Description | |
---|---|---|
HasImmutableResult |
Gets a value indicating whether this instance has immutable result.
| |
ImmutableResult |
Gets the immutable result.
| |
IsCanceled | Returns true if the work item has been canceled.
| |
IsResultValid | Returns true if the work item result is valid in the live document.
This will be false if the worker model changed after the work item was added
to the dispatcher.
| |
ModelGeneration | Gets the associated worker model generation.
This can be used by the worker to cache information based
on the worker model state. Should be avoided whenever possible.
Caching should instead be handled via the caching behavior,
the model key and item key functions of
the worker factory.
| |
Tag | Gets or sets a tag object. The tag object can be used to associate
information with the work item.
|
See Also