/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { WindowsEventLog.CreateEventLog(); ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { new SignalRService() }; //ServiceBase.Run(ServicesToRun); ServicesToRun.SelectWhatDoing(args); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { WindowsEventLog.EventLogName = SharedLinks.EventLogName; WindowsEventLog.EventLogSourceName = SharedLinks.EventLogSource; WindowsEventLog.CreateEventLog(); var servicesToRun = new ServiceBase[] { new SLCService() }; //ServiceBase.Run(servicesToRun); servicesToRun.SelectWhatDoing(args); }