示例#1
0
 private static async Task OpenListener()
 {
     await Task.Run(() =>
     {
         ListenerManager.SetListener(ListenerManager.ListenerChooser.Nancy);
         var listener = ListenerManager.GetListener();
         listener.Start();
         UtilCmd.WriteTitle($"Local OS Address: [{listener.GetAddress()}]");
     });
 }
示例#2
0
        public static void Main(string[] args)
        {
            var testIt = new TestIt();
            //Restart check Device Manager
            //testIt.RestartSystemAndCheckDeviceName();
            //Restart check MP+
            //testIt.RestartSystemAndCheckDeviceRecognition();
            //Console.ReadKey();
            //return;
            var om = OpenListener();

            if (!testIt.IsNeededRunCmdDirectly(args))
            {
                testIt.ShowTopMenu();
            }
            Console.ReadKey();
            ListenerManager.GetListener().Stop();
        }
示例#3
0
 public RemoteOS(string ip)
 {
     IP          = ip;
     _requestApi = new RequestApi(IP, ListenerManager.GetListener().GetPort());
 }