From 4d873ba43a0d137c6e921aff9252aa380fe39357 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Sat, 9 Sep 2017 05:29:18 -0400 Subject: [PATCH] Removes ITGService StopForUpdate() --- TGInstallerWrapper/Main.cs | 12 ++---------- TGServerService/InterfaceBase.cs | 6 ------ TGServiceInterface/Server.cs | 4 ---- 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/TGInstallerWrapper/Main.cs b/TGInstallerWrapper/Main.cs index 0372aa7204..c4ff509e59 100644 --- a/TGInstallerWrapper/Main.cs +++ b/TGInstallerWrapper/Main.cs @@ -117,16 +117,8 @@ namespace TGInstallerWrapper } catch { - try //maybe older version - { - Server.GetComponent().StopForUpdate(); //this version tries to stop the service itself - await Task.Factory.StartNew(() => Thread.Sleep(15000)); //so let's just let that happen first - } - catch - { - if (MessageBox.Show("ITGSService.PrepareForUpdate() threw an exception! Existing DreamDaemon instances will be terminated. Continue?", "Warning", MessageBoxButtons.YesNo) != DialogResult.Yes) - return; - } + if (MessageBox.Show("ITGSService.PrepareForUpdate() threw an exception! Existing DreamDaemon instances will be terminated. Continue?", "Warning", MessageBoxButtons.YesNo) != DialogResult.Yes) + return; } InstallCancelButton.Enabled = true; diff --git a/TGServerService/InterfaceBase.cs b/TGServerService/InterfaceBase.cs index 91d23b953c..6794f1f39f 100644 --- a/TGServerService/InterfaceBase.cs +++ b/TGServerService/InterfaceBase.cs @@ -41,12 +41,6 @@ namespace TGServerService //public api public void VerifyConnection() { } - //public api - public void StopForUpdate() - { - PrepareForUpdate(); - } - //public api public void PrepareForUpdate() { diff --git a/TGServiceInterface/Server.cs b/TGServiceInterface/Server.cs index 3270b8dfc5..fe603375cc 100644 --- a/TGServiceInterface/Server.cs +++ b/TGServiceInterface/Server.cs @@ -68,10 +68,6 @@ namespace TGServiceInterface [OperationContract] void PrepareForUpdate(); - [OperationContract] - [Obsolete("StopForUpdate is deprecated, please use PrepareForUpdate instead")] - void StopForUpdate(); - /// /// Retrieve's the service's version ///