Exemplo n.º 1
0
        public void Run()
        {
            cmd = Command.Command;
            if (!sender.HasSlots && Command.CommandIsCached)
            {
                Logger.Instance.Error(this, "no slots", String.Format("Command = \"{0}\"", cmd));
                throw new OutOfMemoryException("MCU doesn't have empty slots");
            }

            resendCount = 0;

            CommandId = sender.GetNewIndex();
            sender.SendCommand(cmd, CommandId);
        }
 public int GetNewIndex()
 {
     return(rtSender.GetNewIndex());
 }