diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2018-08-23 14:52:22 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2018-08-23 14:52:22 +0300 |
| commit | 4e81425d99f39b8edc10660d72566c6c1408810d (patch) | |
| tree | 16e93ce35705611e02684c8e8d45b9ce40fbee3e /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Threading | |
| parent | 09c780fd78c43291f7298f854770fbb47d014f02 (diff) | |
| download | Tango-4e81425d99f39b8edc10660d72566c6c1408810d.tar.gz Tango-4e81425d99f39b8edc10660d72566c6c1408810d.zip | |
changes on other computers
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Threading')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Threading/IDispatcherProvider.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Threading/IDispatcherProvider.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Threading/IDispatcherProvider.cs new file mode 100644 index 000000000..1c960ed3a --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Threading/IDispatcherProvider.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.MachineStudio.Common.Threading +{ + /// <summary> + /// Represents a mechanism for invoking actions on the main application thread. + /// </summary> + public interface IDispatcherProvider + { + /// <summary> + /// Invokes the specified action asynchronously. + /// </summary> + /// <param name="action">The action.</param> + void Invoke(Action action); + + /// <summary> + /// Invokes the specified action synchronously. + /// </summary> + /// <param name="action">The action.</param> + void InvokeSync(Action action); + } +} |
