Пример #1
0
        /// <summary>
        /// Send the buffered commands
        /// </summary>
        public virtual void Send(bool keepTogether = false, bool queueJump = false)
        {
            var all = DequeueAll();

            if (keepTogether && all.Length > 1)
            {
                var msg = new BatchMessage(all);
                parent.EnqueueMessage(msg, queueJump);
            }
            else
            {
                parent.EnqueueMessages(all, queueJump);
            }
        }