Example #1
0
        internal void AddReturnValueCommand(ReturnValueCommand command)
        {
            if (command == null)
            {
                throw new ArgumentNullException("command");
            }

            _returnValueCommands.Add(command);
            DataSession.AddReturnValueCommand(command);
        }
Example #2
0
        internal static void AddReturnValueCommand(ReturnValueCommand command)
        {
            if (command == null)
            {
                throw new ArgumentNullException("command");
            }

            _lastRegisteredCommand = command;
            if (command.Key != null)
            {
                if (CommandMap.ContainsKey(command.Key))
                {
                    throw new DuplicateNameException(string.Format("Return command with name {0} already registered.", command.Key));
                }

                CommandMap.Add(command.Key, command);
            }
        }
Example #3
0
        internal void AddReturnValueCommand(ReturnValueCommand command)
        {
            if (command == null)
                throw new ArgumentNullException("command");

            _returnValueCommands.Add(command);
            DataSession.AddReturnValueCommand(command);
        }
Example #4
0
        internal static void AddReturnValueCommand(ReturnValueCommand command)
        {
            if (command == null)
                throw new ArgumentNullException("command");

            _lastRegisteredCommand = command;
            if (command.Key != null)
            {
                if (CommandMap.ContainsKey(command.Key))
                    throw new DuplicateNameException(string.Format("Return command with name {0} already registered.", command.Key));

                CommandMap.Add(command.Key, command);
            }
        }