DummyDispatcher

Ecng.ComponentModel

Dummy dispatcher.

Implements: IDispatcher

Properties

CurrentTimerInterval
public TimeSpan CurrentTimerInterval { get; }
value = dummyDispatcher.CurrentTimerInterval

Current interval at which the underlying timer fires; Zero when no periodic actions are registered. Useful for diagnostics.

PeriodicActionCount
public int PeriodicActionCount { get; }
value = dummyDispatcher.PeriodicActionCount

Number of periodic actions currently registered with this dispatcher.

Methods

Invoke
public void Invoke(Action action)
dummyDispatcher.Invoke(action)

Call action in dispatcher thread.

action
Action.