private void initChatCliServer() { cco = new CliChat(); cco.addChatMessageText += addTextMessage; cco.tryToDisplayMsg += tryToDisplayMsg; cco.addMessageToClockVec += addMessageToClockVec; RemotingServices.Marshal(cco, "chatClientServerService", typeof(CliChat)); }
private void initChatClient(String url, String name) { CliChat obj = (CliChat) Activator.GetObject( typeof(ICliChat), url); Tuple <string, CliChat> t = new Tuple <string, CliChat>(name, obj); cc.Add(t); }
private void initClientServer() { cco = new CliChat(); cco.addChatMessageText += addTextMessage; cco.tryToDisplayMsg += tryToDisplayMsg; cco.addMessageToClockVec += addMessageToClockVec; RemotingServices.Marshal(cco, "chatClientServerService", typeof(CliChat)); mo = new ResponseGame(); mo.changePacmanVisibility += changePacmanVisibility; mo.launch_mainloop += launch_mainloop; mo.registerChatClients += registerChatClients; RemotingServices.Marshal(mo, "ClientService", typeof(IResponseGame)); }