/// <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); }
/// <summary> /// Add a command to the register. /// </summary> /// <param name="command"></param> public void Add(SyncMLCommand command) { pairs.Add(CommandResponsePair.Create(command)); }