using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tango.MachineStudio.Common.Threading { /// /// Represents a mechanism for invoking actions on the main application thread. /// public interface IDispatcherProvider { /// /// Invokes the specified action asynchronously. /// /// The action. void Invoke(Action action); /// /// Invokes the specified action synchronously. /// /// The action. void InvokeSync(Action action); } }