Ejemplo n.º 1
0
        public ICommandState PushState(CommandOutput commandOutput = null)
        {
            var state = commandOutput ?? new CommandOutput();

            OutputStack.Push(state);

            return(state);
        }
Ejemplo n.º 2
0
        public void PopState(CommandOutput commandOutput = null)
        {
            var popped = OutputStack.Pop();

            if (commandOutput == null)
            {
                OrderedOutput.Add(popped.Output);
            }
        }