Example #1
0
        void Thread_UserDisconnect(object s)
        {
            object[] senders = s as object[];

            ReneServiceCallback receiver = senders[0] as ReneServiceCallback;
            User user = senders[1] as User;

            if (!TestCallBack(receiver))
            {
                return;
            }
            Console.WriteLine("UserDisconnect");
            receiver.Broadcast("UserDisconnect", user, "");
        }
Example #2
0
        void Thread_UserConnect(object s)
        {
            object[] senders = s as object[];

            ReneServiceCallback sender   = senders[0] as ReneServiceCallback;
            ReneServiceCallback receiver = senders[1] as ReneServiceCallback;

            if (!TestCallBack(sender) || !TestCallBack(receiver))
            {
                return;
            }

            receiver.Broadcast("UserConnect", sender.User(), "");
        }