Esempio n. 1
0
        /// <summary>
        /// Thread safe. Send a message to a particular target.
        /// </summary>
        /// <param name="target">The target to send the message to.</param>
        /// <param name="messagename">The name of the message to send</param>
        /// <param name="args">The arguments for the message</param>
        public static void SendMessage(IMessageReceiver target, String messagename, params Object[] args)
        {
            Message m = new Message(messagename, null, args);

            target.AssertArgumentTypes(m);
            post.EnqueueMessage(target, m);
        }
Esempio n. 2
0
 /// <summary>
 /// Thread safe. Send a message to a particular target.
 /// </summary>
 /// <param name="target">The target to send the message to.</param>
 /// <param name="messagename">The name of the message to send</param>
 /// <param name="args">The arguments for the message</param>
 public static void SendMessage(IMessageReceiver target, String messagename, params Object[] args)
 {
     Message m = new Message(messagename, null, args);
     target.AssertArgumentTypes(m);
     post.EnqueueMessage(target, m);
 }