Example #1
0
        static void Main()
        {
            var builder = new ServerBuilder();

            builder.Add(new Logger());
            builder.OnMessageReceived += OnMessageReceived;
            var server = builder.Build();

            using var start = server.Start();
            Console.WriteLine("Press enter to exit.");
            Console.ReadLine();
        }