From f78b328759bb673b695c6b0d1a1dac6d871d257a Mon Sep 17 00:00:00 2001 From: adrianknight89 Date: Tue, 10 Jan 2017 18:07:01 -0600 Subject: =?UTF-8?q?iOS=20and=20Android=20timers=20should=20be=20runnable?= =?UTF-8?q?=20from=20any=20thread=20and=20execute=E2=80=A6=20(#374)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * iOS and Android timers should be runnable from any thread and executed on the main thread * removing unused Timer class declarations with minor refactoring efforts * iOS and Android timers should be runnable from any thread and executed on the main thread * removing bak file * switch to v7 * add test code --- Xamarin.Forms.Platform.WP8/WP8PlatformServices.cs | 30 ----------------------- 1 file changed, 30 deletions(-) (limited to 'Xamarin.Forms.Platform.WP8') diff --git a/Xamarin.Forms.Platform.WP8/WP8PlatformServices.cs b/Xamarin.Forms.Platform.WP8/WP8PlatformServices.cs index 30623088..cd9f44f9 100644 --- a/Xamarin.Forms.Platform.WP8/WP8PlatformServices.cs +++ b/Xamarin.Forms.Platform.WP8/WP8PlatformServices.cs @@ -137,36 +137,6 @@ namespace Xamarin.Forms return 'a' + v - 10; } - public class _Timer : ITimer - { - readonly Timer _timer; - - public _Timer(Timer timer) - { - _timer = timer; - } - - public void Change(int dueTime, int period) - { - _timer.Change(dueTime, period); - } - - public void Change(long dueTime, long period) - { - _timer.Change(dueTime, period); - } - - public void Change(TimeSpan dueTime, TimeSpan period) - { - _timer.Change(dueTime, period); - } - - public void Change(uint dueTime, uint period) - { - _timer.Change(dueTime, period); - } - } - public class _IsolatedStorageFile : IIsolatedStorageFile { readonly IsolatedStorageFile _isolatedStorageFile; -- cgit v1.2.3