The WorkDispatcher type exposes the following members.
Back to Top
Back to Top
Methods
Name | Description | |
---|---|---|
CancelAll | Cancel all work items.
| |
Dispose | Cancels all work items and frees up resources.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
AutoCancel | Gets or sets a value indicating whether worker model changes should
automatically cancel added work items.
The default value is true.
| |
AutoDisposeItems | Gets or sets a value indicating whether work items should be automatically disposed.
The default value is true. Manipulating this flag should be avoided whenever possible.
Instead use work item handlers to make sure that work items are not disposed too early.
| |
IsDisposed | Gets a value indicating whether this instance has been disposed.
| |
MaxQueueSize | Gets or sets the maximum allowed number of items waiting to be dispatched.
Before new items are added, items at the back of the queue will be canceled to make room.
|
See Also