Interface IDispatcher
Dispatches jobs to a thread.
public interface IDispatcher
Methods
CheckAccess()
Determines whether the calling thread is the thread associated with this IDispatcher.
bool CheckAccess()
Returns
- bool
True if he calling thread is the thread associated with the dispatched, otherwise false.
Post(Action, DispatcherPriority)
Posts an action that will be invoked on the dispatcher thread.
void Post(Action action, DispatcherPriority priority = default)
Parameters
action
ActionThe method.
priority
DispatcherPriorityThe priority with which to invoke the method.
VerifyAccess()
Throws an exception if the calling thread is not the thread associated with this IDispatcher.
void VerifyAccess()