Exemplo n.º 1
0
 public void OnNewMessage(MessageModel message, string roomName)
 {
     if (MessageAdded != null)
     {
         MessageAdded(App.ChatHub, new MessageAddedEventArgs
         {
             Message = message,
             RoomName = roomName
         });
     }
 }
Exemplo n.º 2
0
        public void OnNewMessage(MessageModel message, string roomName)
        {
            if (MessageAdded != null)
            {
                //For some reason When comes through localized here.
                message.When = message.When.ToUniversalTime();

                MessageAdded(App.ChatHub, new MessageAddedEventArgs
                {
                    Message = message,
                    RoomName = roomName
                });
            }
        }