using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.FSE.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 InvokeBlock(Action action);
///
/// Forces the dispatcher message loop.
///
void DoEvents();
}
}