aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Threading
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2018-07-15 01:04:34 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2018-07-15 01:04:34 +0300
commitcc425e019d3a7d3494ac15ffe213b6b47b1c64ed (patch)
tree6db5ec969f92f91c2d05af55216bc4a267cc2370 /Software/Visual_Studio/PPC/Tango.PPC.UI/Threading
parent64bcf92608faae31b7cd31ac3da5c7d1d7ebcd0b (diff)
downloadTango-cc425e019d3a7d3494ac15ffe213b6b47b1c64ed.tar.gz
Tango-cc425e019d3a7d3494ac15ffe213b6b47b1c64ed.zip
Working on PPC.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Threading')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Threading/DefaultDispetcherProvider.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Threading/DefaultDispetcherProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Threading/DefaultDispetcherProvider.cs
new file mode 100644
index 000000000..c33233573
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Threading/DefaultDispetcherProvider.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Threading;
+using Tango.PPC.Common.Threading;
+
+namespace Tango.PPC.UI.Threading
+{
+ public class DefaultDispetcherProvider : IDispatcherProvider
+ {
+ private Dispatcher _dispatcher;
+
+ public DefaultDispetcherProvider(Dispatcher dispacther)
+ {
+ _dispatcher = dispacther;
+ }
+
+ public void Invoke(Action action)
+ {
+ _dispatcher.BeginInvoke(action);
+ }
+
+ public void InvokeSync(Action action)
+ {
+ _dispatcher.Invoke(action);
+ }
+ }
+}