From 6254a69a5f236c8c49cd3dfeff4a5b681a9d56b1 Mon Sep 17 00:00:00 2001 From: "chris.watts90@outlook.com" Date: Sat, 18 Feb 2017 21:43:15 +0000 Subject: [PATCH] rename Service1 to DataCenterService --- ...ice1.Designer.cs => DataCenterService.Designer.cs} | 2 +- .../{Service1.cs => DataCenterService.cs} | 11 ++--------- .../WindowsDataCenter/WindowsDataCenter/Program.cs | 2 +- .../WindowsDataServiceHost/Program.cs | 2 +- 4 files changed, 5 insertions(+), 12 deletions(-) rename DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/{Service1.Designer.cs => DataCenterService.Designer.cs} (96%) rename DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/{Service1.cs => DataCenterService.cs} (88%) diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Service1.Designer.cs b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/DataCenterService.Designer.cs similarity index 96% rename from DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Service1.Designer.cs rename to DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/DataCenterService.Designer.cs index 264072a..e3edc13 100644 --- a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Service1.Designer.cs +++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/DataCenterService.Designer.cs @@ -1,6 +1,6 @@ namespace WindowsDataCenter { - partial class Service1 + partial class DataCenterService { /// /// Required designer variable. diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Service1.cs b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/DataCenterService.cs similarity index 88% rename from DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Service1.cs rename to DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/DataCenterService.cs index 8b9eacf..53f24e9 100644 --- a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Service1.cs +++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/DataCenterService.cs @@ -1,21 +1,14 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; using System.Diagnostics; -using System.Linq; using System.ServiceProcess; -using System.Text; using System.Threading; -using System.Threading.Tasks; using Microsoft.Owin.Hosting; -using Ninject; namespace WindowsDataCenter { - public partial class Service1: ServiceBase + public partial class DataCenterService: ServiceBase { - public Service1() + public DataCenterService() { InitializeComponent(); } diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Program.cs b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Program.cs index 122b841..6f3ea16 100644 --- a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Program.cs +++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Program.cs @@ -17,7 +17,7 @@ namespace WindowsDataCenter ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { - new Service1() + new DataCenterService() }; ServiceBase.Run(ServicesToRun); } diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataServiceHost/Program.cs b/DataCenter_Windows/WindowsDataCenter/WindowsDataServiceHost/Program.cs index 3f57db9..91104bc 100644 --- a/DataCenter_Windows/WindowsDataCenter/WindowsDataServiceHost/Program.cs +++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataServiceHost/Program.cs @@ -11,7 +11,7 @@ namespace WindowsDataServiceHost { static void Main(string[] args) { - var service = new Service1(); + var service = new DataCenterService(); service.Start(); Console.WriteLine("Running DataService.."); Console.ReadLine();