示例#1
0
        /// <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);
        }
示例#2
0
        /// <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);
        }