internal void AddReturnValueCommand(ReturnValueCommand command) { if (command == null) { throw new ArgumentNullException("command"); } _returnValueCommands.Add(command); DataSession.AddReturnValueCommand(command); }
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); } }
internal void AddReturnValueCommand(ReturnValueCommand command) { if (command == null) throw new ArgumentNullException("command"); _returnValueCommands.Add(command); DataSession.AddReturnValueCommand(command); }
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); } }