示例#1
0
        internal static void AddCommand(RestCommand restCommand) {
            for (int i = _commands.Count - 1; i >= 0; i--) {
                if (_commands[i].PublishAs == restCommand.PublishAs) {
                    _commands.RemoveAt(i);
                }
            }

            _commands.Add(restCommand);
        }