コード例 #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);
        }
コード例 #2
0
 public static void InvokeClientMessageEvent(ClientMessageEventArgs args)
 {
     ClientMessageEvent?.Invoke(args);
 }