예제 #1
0
        public void Validate(ConfigCommand command, Production production)
        {
            var oldProduction = _production;

            try
            {
                _production = production;
                command.Apply(this);
            }
            finally
            {
                _production = oldProduction;
            }
        }
예제 #2
0
 public void Write(ConfigCommand command, Production production)
 {
     _production = production;
     command.Apply(this);
 }