21 lines
480 B
C#
21 lines
480 B
C#
|
|
using System.ServiceProcess;
|
|||
|
|
|
|||
|
|
namespace DTS.Common.Service
|
|||
|
|
{
|
|||
|
|
static class Program
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// The main entry point for the application.
|
|||
|
|
/// InstallUtil.exe “WindowService.exe”
|
|||
|
|
/// </summary>
|
|||
|
|
static void Main()
|
|||
|
|
{
|
|||
|
|
var servicesToRun = new ServiceBase[]
|
|||
|
|
{
|
|||
|
|
new DTSService()
|
|||
|
|
};
|
|||
|
|
ServiceBase.Run(servicesToRun);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|