示例#1
0
        /// <summary>
        /// Create a pair.
        /// </summary>
        /// <param name="command"></param>
        /// <returns></returns>
        public static CommandResponsePair Create(SyncMLCommand command)
        {
            if (command == null)
            {
                throw new ArgumentNullException("command");
            }

            CommandResponsePair r = new CommandResponsePair();

            r.command = command;
            r.cmdRef  = command.CmdID.Content;
            return(r);
        }
示例#2
0
 /// <summary>
 /// Add a command to the register.
 /// </summary>
 /// <param name="command"></param>
 public void Add(SyncMLCommand command)
 {
     pairs.Add(CommandResponsePair.Create(command));
 }