internal CardCommand GetCommand(CardCommand command, CardResponse response) { this.commandMatch = this.originalCommandTrigger.Match(Conversion.ToHexString(command.Serialize())); this.responseMatch = this.originalResponseTrigger.Match(Conversion.ToHexString(response.Serialize())); string DynamicCommand = this.Resolve(this.dynamicCommandConstructionExpression); this.commandMatch = null; this.responseMatch = null; return(new CardCommand(Conversion.ToByteArray(DynamicCommand))); }
internal bool IsMatch(CardCommand command, CardResponse response) { return(this.originalCommandTrigger.IsMatch(Conversion.ToHexString(command.Serialize())) && this.originalResponseTrigger.IsMatch(Conversion.ToHexString(response.Serialize()))); }