Send() public méthode

public Send ( Message message ) : bool
message Message
Résultat bool
Exemple #1
0
        /// <summary>
        /// FIXME send Message, not string
        /// </summary>
        /// <param name="msg"></param>
        /// <returns></returns>
        public static bool SendToTarget(Message message, SessionID sessionID)
        {
            message.SetSessionID(sessionID);
            Session session = Session.LookupSession(sessionID);

            if (null == session)
            {
                throw new SessionNotFound(sessionID);
            }
            return(session.Send(message));
        }