static void Main(string[] args)
        {
            var sh      = new ServiceHost(new SampleServer());
            var binding = new HyperVNetBinding();

            sh.AddServiceEndpoint(typeof(IServer), binding, "hypervnb://00000000-0000-0000-0000-000000000000/C7240163-6E2B-4466-9E41-FF74E7F0DE47");
            sh.Open();
            Console.ReadLine();
            sh.Close();
        }
        public void StartUpServer()
        {
            try
            {
                mySampleServer = new DetectorServer();
                var sh      = new ServiceHost(mySampleServer);
                var binding = new HyperVNetBinding();
                sh.AddServiceEndpoint(typeof(IServer), binding, DetectorServerAddr);
                sh.Open();

                string input = Console.ReadLine();
                if (input == "s")
                {
                    sh.Close();
                }
            }
            catch (Exception exp)
            {
                Console.WriteLine(exp.Message, "启动服务器失败,出现异常");
            }
        }