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