CgwMonitorManage.Service.Program.Main C# (CSharp) Method

Main() static private method

服务启动Main函数
static private Main ( string args ) : void
args string
return void
        static void Main(string[] args)
        {
            Thread th = new Thread(new ThreadStart(() =>
            {
                StartService();
            }));
            th.Priority = ThreadPriority.Highest;
            th.Start();
            th.Join();
        }