Пример #1
0
        private void EventDispatcher_MessageIsolated(ClientMessageEventArgs args)
        {
            if (ServerCore.DebugMode)
            {
                Console.WriteLine("Message Dispatched On Thread: " + Thread.CurrentThread.ManagedThreadId);
                Console.WriteLine(String.Format("Message From: [{0}] ({1})", args.ClientId, args.Message.Replace("#|", " ")));
            }

            ParseMessageByProtocol(args.ClientId, args.Message);
        }
 public static void InvokeClientMessageEvent(ClientMessageEventArgs args)
 {
     ClientMessageEvent?.Invoke(args);
 }