aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Threading
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-07-15 10:55:00 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-07-15 10:55:00 +0300
commitdf9b2580669472d446e109dff88bdfa247b23b1e (patch)
tree5503909f4d2c5d41855849b944bc42bdbb788a27 /Software/Visual_Studio/PPC/Tango.PPC.UI/Threading
parentcc425e019d3a7d3494ac15ffe213b6b47b1c64ed (diff)
downloadTango-df9b2580669472d446e109dff88bdfa247b23b1e.tar.gz
Tango-df9b2580669472d446e109dff88bdfa247b23b1e.zip
Implemented global disable UI Invokations & Property changed events on ExtendedObject.
Some comments on PPC threading.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Threading')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Threading/DefaultDispetcherProvider.cs20
1 files changed, 18 insertions, 2 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
index c33233573..0051ca329 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Threading/DefaultDispetcherProvider.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Threading/DefaultDispetcherProvider.cs
@@ -8,20 +8,36 @@ using Tango.PPC.Common.Threading;
namespace Tango.PPC.UI.Threading
{
+ /// <summary>
+ /// Represents the default PPC <see cref="IDispatcherProvider"/> which will invoke action on the current application dispatcher.
+ /// </summary>
+ /// <seealso cref="Tango.PPC.Common.Threading.IDispatcherProvider" />
public class DefaultDispetcherProvider : IDispatcherProvider
{
private Dispatcher _dispatcher;
- public DefaultDispetcherProvider(Dispatcher dispacther)
+ /// <summary>
+ /// Initializes a new instance of the <see cref="DefaultDispetcherProvider"/> class.
+ /// </summary>
+ /// <param name="dispatcher">The dispatcher.</param>
+ public DefaultDispetcherProvider(Dispatcher dispatcher)
{
- _dispatcher = dispacther;
+ _dispatcher = dispatcher;
}
+ /// <summary>
+ /// Invokes the specified action asynchronously.
+ /// </summary>
+ /// <param name="action">The action.</param>
public void Invoke(Action action)
{
_dispatcher.BeginInvoke(action);
}
+ /// <summary>
+ /// Invokes the specified action synchronously.
+ /// </summary>
+ /// <param name="action">The action.</param>
public void InvokeSync(Action action)
{
_dispatcher.Invoke(action);