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()}]"); }); }
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(); }
public RemoteOS(string ip) { IP = ip; _requestApi = new RequestApi(IP, ListenerManager.GetListener().GetPort()); }