34 lines
645 B
C#
34 lines
645 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.ServiceProcess;
|
|
using System.Text;
|
|
|
|
namespace TCPServerService
|
|
{
|
|
static class Program
|
|
{
|
|
public static String COMPANY = "SafeMobile";
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
static void Main()
|
|
{
|
|
|
|
#if SIMOCO
|
|
COMPANY = "Simoco";
|
|
#else
|
|
COMPANY = "SafeMobile";
|
|
#endif
|
|
|
|
ServiceBase[] ServicesToRun;
|
|
ServicesToRun = new ServiceBase[]
|
|
{
|
|
new Service1()
|
|
};
|
|
ServiceBase.Run(ServicesToRun);
|
|
}
|
|
|
|
}
|
|
}
|