aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Extensions/BaseExtensions.cs
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-02-23 12:54:51 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-02-23 12:54:51 -0500
commit465f0cc1e2e4fc50a0adbef79a4a317eec5eb454 (patch)
tree1379228a1c9ae8e3d54655e24e5bb31e3a08e128 /MediaBrowser.Common/Extensions/BaseExtensions.cs
parent17c1fd576057bdd2d6aea517d733fe8af6e6b2ba (diff)
moved some network code to the networking assembly
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 6abe6d4e0..5342cff4b 100644
--- a/MediaBrowser.Common/Extensions/BaseExtensions.cs
+++ b/MediaBrowser.Common/Extensions/BaseExtensions.cs
@@ -1,10 +1,8 @@
using System;
using System.Collections.Generic;
-using System.Diagnostics;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
-using System.Threading.Tasks;
namespace MediaBrowser.Common.Extensions
{
@@ -46,23 +44,6 @@ namespace MediaBrowser.Common.Extensions
}
/// <summary>
- /// Provides a non-blocking method to start a process and wait asynchronously for it to exit
- /// </summary>
- /// <param name="process">The process.</param>
- /// <returns>Task{System.Boolean}.</returns>
- public static Task<bool> RunAsync(this Process process)
- {
- var tcs = new TaskCompletionSource<bool>();
-
- process.EnableRaisingEvents = true;
- process.Exited += (sender, args) => tcs.SetResult(true);
-
- process.Start();
-
- return tcs.Task;
- }
-
- /// <summary>
/// Shuffles an IEnumerable
/// </summary>
/// <typeparam name="T"></typeparam>