Dispatches a work item for execution outside of the calling thread.
Namespace: Metalama.Patterns.Caching.Implementation
Assembly: Metalama.Patterns.Caching.Backend.dll
Syntax
public interface IWorkItemDispatcherRemarks
The caching backends dispatch every event and every background operation through this interface. The default implementation is ThreadPoolWorkItemDispatcher, which queues the work item to the thread pool. A different implementation is supplied by registering it in the service provider of the backend.
The interface only queues. The ability to wait for the completion of the pending work items belongs to the implementation that a test substitutes, not to this interface.
Methods
| Name | Description |
|---|---|
| Dispatch(WaitCallback, object?, bool) | Queues a work item. |