예제 #1
0
 void OnMessageReceived(TextMessageReceivedEventArgs e)
 {
     if (IsRemoteUser(e.Sender))
     {
         MessageReceived(this, e);
     }
 }
예제 #2
0
        void chatHost_MessageReceived(object sender, TextMessageReceivedEventArgs e)
        {
            if (e.SessionID != Id)
            {
                return;
            }

            eventQueue.Enqueue(() => OnMessageReceived(e));
        }
예제 #3
0
파일: Chat.cs 프로젝트: dugu01/squiggle
        void session_MessageReceived(object sender, Squiggle.Core.Chat.TextMessageReceivedEventArgs e)
        {
            IBuddy buddy;

            if (buddies.TryGet(e.Sender.ClientID, out buddy))
            {
                MessageReceived(this, new ChatMessageReceivedEventArgs()
                {
                    Id        = e.Id,
                    Sender    = buddy,
                    FontName  = e.FontName,
                    FontSize  = e.FontSize,
                    Color     = e.Color,
                    FontStyle = e.FontStyle,
                    Message   = e.Message
                });
                LogHistory(EventType.Message, buddy, e.Message);
            }
        }