Пример #1
0
        static void Main(string[] args)
        {
            var configuration = new LiteServerConfiguration("127.0.0.1", 4444)
            {
                ReceiveStrategy = Common.ReceiveStrategyType.Queued
            };

            using var server = new EchoServer(configuration);

            server.Start();
            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("=== ECHO SERVER ===");

            var configuration = new LiteServerOptions()
            {
                Host            = "127.0.0.1",
                Port            = 4444,
                ReceiveStrategy = ReceiveStrategyType.Queued
            };

            using var server = new EchoServer(configuration);

            server.Start();
            Console.ReadKey();
        }