diff --git a/src/Uno.UI/Mock/DispatcherTimer.net.cs b/src/Uno.UI/Mock/DispatcherTimer.net.cs deleted file mode 100644 index af2bd4c23a5142583763e7c5241c99fc21789268..0000000000000000000000000000000000000000 --- a/src/Uno.UI/Mock/DispatcherTimer.net.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Windows.UI.Xaml -{ - partial class DispatcherTimer - { - private void StartNative(TimeSpan interval) - { - ; // Not supported in unit tests - } - - private void StartNative(TimeSpan dueTime, TimeSpan interval) - { - ; // Not supported in unit tests - } - - private void StopNative() - { - ; // Not supported in unit tests - } - } -} diff --git a/src/Uno.UI/Mock/DispatcherTimer.netstdref.cs b/src/Uno.UI/Mock/DispatcherTimer.netstdref.cs deleted file mode 100644 index af5d3abffb767d270f6271bb5077bc109b95b4ce..0000000000000000000000000000000000000000 --- a/src/Uno.UI/Mock/DispatcherTimer.netstdref.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Windows.UI.Xaml -{ - partial class DispatcherTimer - { - private void StartNative(TimeSpan interval) - { - throw new NotSupportedException(); - } - - private void StartNative(TimeSpan dueTime, TimeSpan interval) - { - throw new NotSupportedException(); - } - - private void StopNative() - { - throw new NotSupportedException(); - } - } -} diff --git a/src/Uno.UWP/System/DispatcherQueueTimer.netstd.cs b/src/Uno.UWP/System/DispatcherQueueTimer.netstd.cs index 6b3a853a1d5428bb3fd76eb83d70d2a3ecdaec4a..4193e1513c050642fa409b91263fb088c553e91d 100644 --- a/src/Uno.UWP/System/DispatcherQueueTimer.netstd.cs +++ b/src/Uno.UWP/System/DispatcherQueueTimer.netstd.cs @@ -26,7 +26,7 @@ partial class DispatcherQueueTimer private void DispatchRaiseTick() { #if __WASM__ - if (!CoreDispatcher.Main.IsThreadingSupported) + if (!CoreDispatcher.IsThreadingSupported) { RaiseTick(); return;