/// <summary> /// The main entry point for the application. /// </summary> static void Main() { ServiceMain serviceMain = new ServiceMain(); serviceMain.Initialize(); #if (DEBUG) serviceMain.Start(); #else ServiceBase.Run(new ServiceBase[] { serviceMain }); #endif }
static void Main(string[] args) { ServiceMain.Start(args); }