Exemplo n.º 1
0
            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");
            }
Exemplo n.º 2
0
            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();
            }
Exemplo n.º 3
0
            static void Main(string[] args)
            {
                var l = new LoopTesterApp();

                l.Run();
            }
Exemplo n.º 4
0
 static void Main(string[] args)
 {
     var l = new LoopTesterApp();
     l.Run();
 }