コード例 #1
0
        public static BufferedCommandResponse ExecuteBufferedCommand(string cmd)
        {
            var trigger = new BufferedCommandTrigger(new StringStream(cmd));

            Instance.Execute(trigger);
            return(trigger.Response);
        }
コード例 #2
0
        /// <summary>
        /// Calls <code>return Execute(new CmdTrigger(text));</code>.
        /// </summary>
        /// <param name="text"></param>
        /// <returns></returns>
        public static bool Execute(StringStream text)
        {
            var trigger = new DefaultCmdTrigger(text);

            if (!trigger.InitTrigger())
            {
                return(true);
            }
            return(Instance.Execute(trigger));
        }