aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Extensions/BaseExtensions.cs
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-02-21 23:23:06 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-02-21 23:23:06 -0500
commit868a7ce9c8b50bd64c8b5ae33fec77abfd25ef7c (patch)
treea60a3a27afe43a8b5e3412279225be7b2415e6c3 /MediaBrowser.Common/Extensions/BaseExtensions.cs
parentfdafa596832eae13cebcf5bbe5fa867f7ba068f0 (diff)
isolated clickonce dependancies
Diffstat (limited to 'MediaBrowser.Common/Extensions/BaseExtensions.cs')
-rw-r--r--MediaBrowser.Common/Extensions/BaseExtensions.cs19
1 files changed, 0 insertions, 19 deletions
diff --git a/MediaBrowser.Common/Extensions/BaseExtensions.cs b/MediaBrowser.Common/Extensions/BaseExtensions.cs
index e6b9d8ee6..6abe6d4e0 100644
--- a/MediaBrowser.Common/Extensions/BaseExtensions.cs
+++ b/MediaBrowser.Common/Extensions/BaseExtensions.cs
@@ -5,7 +5,6 @@ using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
-using System.Windows.Threading;
namespace MediaBrowser.Common.Extensions
{
@@ -47,24 +46,6 @@ namespace MediaBrowser.Common.Extensions
}
/// <summary>
- /// Invokes an action after a specified delay
- /// </summary>
- /// <param name="dispatcher">The dispatcher.</param>
- /// <param name="action">The action.</param>
- /// <param name="delayMs">The delay ms.</param>
- public static void InvokeWithDelay(this Dispatcher dispatcher, Action action, long delayMs)
- {
- var timer = new DispatcherTimer(DispatcherPriority.Normal, dispatcher);
- timer.Interval = TimeSpan.FromMilliseconds(delayMs);
- timer.Tick += (sender, args) =>
- {
- timer.Stop();
- action();
- };
- timer.Start();
- }
-
- /// <summary>
/// Provides a non-blocking method to start a process and wait asynchronously for it to exit
/// </summary>
/// <param name="process">The process.</param>