From 465f0cc1e2e4fc50a0adbef79a4a317eec5eb454 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Sat, 23 Feb 2013 12:54:51 -0500 Subject: moved some network code to the networking assembly --- MediaBrowser.Common/Extensions/BaseExtensions.cs | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'MediaBrowser.Common/Extensions/BaseExtensions.cs') 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 { @@ -45,23 +43,6 @@ namespace MediaBrowser.Common.Extensions return val.Split(new[] { separator }, options); } - /// - /// Provides a non-blocking method to start a process and wait asynchronously for it to exit - /// - /// The process. - /// Task{System.Boolean}. - public static Task RunAsync(this Process process) - { - var tcs = new TaskCompletionSource(); - - process.EnableRaisingEvents = true; - process.Exited += (sender, args) => tcs.SetResult(true); - - process.Start(); - - return tcs.Task; - } - /// /// Shuffles an IEnumerable /// -- cgit v1.2.3