static void Main(string[] args) { var runtime = Type.GetType("Mono.Runtime") != null ? "Mono" : ".NET Core"; Notify($"C#/{runtime}\t{Process.GetCurrentProcess().Id}"); var l = new LoopTesterApp(); l.Run(); Notify("stop"); }
static void Main(string[] args) { try { using (var s = new System.Net.Sockets.TcpClient("localhost", 9001)) { var runtime = Type.GetType("Mono.Runtime") != null ? "Mono" : ".NET Core"; var data = System.Text.Encoding.UTF8.GetBytes("C# " + runtime); s.Client.Send(data); } } catch { // standalone usage } var l = new LoopTesterApp(); l.Run(); }
static void Main(string[] args) { var l = new LoopTesterApp(); l.Run(); }