rename Service1 to DataCenterService
This commit is contained in:
parent
655ac4732d
commit
6254a69a5f
@ -1,6 +1,6 @@
|
|||||||
namespace WindowsDataCenter
|
namespace WindowsDataCenter
|
||||||
{
|
{
|
||||||
partial class Service1
|
partial class DataCenterService
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
@ -1,21 +1,14 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
|
||||||
using System.ServiceProcess;
|
using System.ServiceProcess;
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.Owin.Hosting;
|
using Microsoft.Owin.Hosting;
|
||||||
using Ninject;
|
|
||||||
|
|
||||||
namespace WindowsDataCenter
|
namespace WindowsDataCenter
|
||||||
{
|
{
|
||||||
public partial class Service1: ServiceBase
|
public partial class DataCenterService: ServiceBase
|
||||||
{
|
{
|
||||||
public Service1()
|
public DataCenterService()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
@ -17,7 +17,7 @@ namespace WindowsDataCenter
|
|||||||
ServiceBase[] ServicesToRun;
|
ServiceBase[] ServicesToRun;
|
||||||
ServicesToRun = new ServiceBase[]
|
ServicesToRun = new ServiceBase[]
|
||||||
{
|
{
|
||||||
new Service1()
|
new DataCenterService()
|
||||||
};
|
};
|
||||||
ServiceBase.Run(ServicesToRun);
|
ServiceBase.Run(ServicesToRun);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,7 +11,7 @@ namespace WindowsDataServiceHost
|
|||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
var service = new Service1();
|
var service = new DataCenterService();
|
||||||
service.Start();
|
service.Start();
|
||||||
Console.WriteLine("Running DataService..");
|
Console.WriteLine("Running DataService..");
|
||||||
Console.ReadLine();
|
Console.ReadLine();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user