Example #1
0
 protected void SendMessageEvent(IWCMessage message)
 {
     EventHandler<WCMessageEventArg> handler = MessageRecieved;
     String msgWithUsername = "******" + Username + "> " + message.Message;
     WCMessageEventArg eventMessage = new WCMessageEventArg(new WCMessage(msgWithUsername, WCMessageType.MESSAGE));
     if (handler != null)
     {
         handler(this, eventMessage);
     }
 }
Example #2
0
 protected void ComChannel_OnMessageReceivedEvent(Object sender, WCMessageEventArg messageEventArgs)
 {
     Handle_Message(messageEventArgs.Message);
 }
Example #3
0
 protected void Client_OnDisconnectEvent(Object sender, WCMessageEventArg messageEventArgs)
 {
     Console.WriteLine(messageEventArgs.Message.Message);
     connected = -1;
 }
Example #4
0
 protected void Client_OnMessageReceivedEvent(Object sender, WCMessageEventArg messageEventArgs)
 {
     Console.WriteLine(messageEventArgs.Message.Message.ToString());
 }
Example #5
0
 protected void Client_OnMessageReceivedEvent(Object sender, WCMessageEventArg messageEventArgs)
 {
     SendMessage(messageEventArgs.Message);
 }