signalr - Implementing Private chat with Windows Forms and asp.net signar -


i done winform client , web client , winform sever reffering following links.

https://code.msdn.microsoft.com/windowsdesktop/using-signalr-in-winforms-f1ec847b

but implemented in group chat want private chat.

thankas in advance

take on project.

it's 1 one chat: http://www.codeproject.com/articles/562023/asp-net-signalr-chat-room

the relevant function :

public void sendprivatemessage(string touserid, string message) {      string fromuserid = context.connectionid;    var touser = connectedusers.firstordefault(x => x.connectionid == touserid) ;    var fromuser = connectedusers.firstordefault(x => x.connectionid == fromuserid);     if (touser != null && fromuser!=null)    {        // send        clients.client(touserid).sendprivatemessage(fromuserid, fromuser.username, message);         // send caller user        clients.caller.sendprivatemessage(touserid, fromuser.username, message);    }  } 

Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -