Exemplo n.º 1
0
 public static void SetUserStatus(string clientUrl, string userName, string status)
 {
     ClientRemoteObject =
         (ServerToClientCOM.RemotableObject)Activator.GetObject(typeof(ServerToClientCOM.RemotableObject),
                                                                clientUrl);
     ClientRemoteObject.SetUserStatus(userName, status);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Trimite un mesaj primit dela un user spre celalalt user
 /// </summary>
 /// <param name="message"></param>
 /// <param name="fromUserName"></param>
 /// <param name="toUserNameChannelURL"></param>
 public static void SendMessage(string message, string fromUserName, string toUserNameChannelURL)
 {
     if (!toUserNameChannelURL.Equals("0"))
     {
         ClientRemoteObject =
             (ServerToClientCOM.RemotableObject)Activator.GetObject(typeof(ServerToClientCOM.RemotableObject),
                                                                    toUserNameChannelURL);
         ClientRemoteObject.MessageReceived(message, fromUserName);
     }
 }