Example #1
0
        private async void ReceiveMessage(string nick, string message)
        {
            clsMensajeChat msj = new clsMensajeChat();

            msj.nick    = nick;
            msj.mensaje = message;
            await Windows.ApplicationModel.Core.CoreApplication.MainView.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                Messages.Add(msj);
            });
        }
Example #2
0
 /// <summary>
 /// send message to the connections in the group.
 /// </summary>
 /// <param name="groupName"></param>
 /// <param name="userName"></param>
 /// <param name="message"></param>
 /// <param name="sendTime"></param>
 public void SendToGroup(clsMensajeChat group)
 {
     Clients.Group(group.nombreGrupo).ReceiveMessage(group.nick, group.mensaje);
 }