diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2015-12-15 15:18:38 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2015-12-15 18:43:06 +0300 |
commit | b337b503ce5dfde6a50e9857db5cc65815ce37fb (patch) | |
tree | 75356622e8eb202587b062505a80b9345e314923 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest | |
parent | a0c539d46e7fef88393d86f3875a90cc6dec4396 (diff) |
Close most of DispatchService
Most of the DispatchService functionality has been superseeded by async api
and by methods in MonoDevelop.Core.Runtime.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest/AutoTestSession.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest/AutoTestSession.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest/AutoTestSession.cs index a4fb16bb70..21ed5b9ef1 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest/AutoTestSession.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest/AutoTestSession.cs @@ -108,7 +108,7 @@ namespace MonoDevelop.Components.AutoTest object res = null; Exception error = null; - if (DispatchService.IsGuiThread) { + if (Runtime.IsMainThread) { res = del (); return safe ? SafeObject (res) : res; } @@ -182,7 +182,7 @@ namespace MonoDevelop.Components.AutoTest public void TakeScreenshot (string screenshotPath) { #if MAC - DispatchService.GuiDispatch (delegate { + Runtime.RunInMainThread (delegate { try { IntPtr handle = CGDisplayCreateImage (MainDisplayID ()); CoreGraphics.CGImage screenshot = ObjCRuntime.Runtime.GetINativeObject <CoreGraphics.CGImage> (handle, true); @@ -325,7 +325,7 @@ namespace MonoDevelop.Components.AutoTest public void ExecuteOnIdle (Action idleFunc, bool wait = true, int timeout = 20000) { - if (DispatchService.IsGuiThread) { + if (Runtime.IsMainThread) { idleFunc (); return; } |