IDispatcher
Ecng.ComponentModel
Threads dispatcher.
Methods
CheckAccess
public bool CheckAccess()
result = iDispatcher.CheckAccess()
Verify that current thread is dispatcher thread.
Returns: Operation result.
Invoke
public void Invoke(Action action)
iDispatcher.Invoke(action)
Call action in dispatcher thread.
- action
- Action.
InvokeAsync
public void InvokeAsync(Action action)
iDispatcher.InvokeAsync(action)
Call action in dispatcher thread.
- action
- Action.
InvokePeriodically
public IDisposable InvokePeriodically(Action action, TimeSpan interval)
result = iDispatcher.InvokePeriodically(action, interval)
Invoke action periodically in dispatcher thread.
- action
- Action.
- interval
- Interval between invocations.
Returns: IDisposable to unsubscribe.