コード例 #1
0
        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)));
        }
コード例 #2
0
 internal bool IsMatch(CardCommand command, CardResponse response)
 {
     return(this.originalCommandTrigger.IsMatch(Conversion.ToHexString(command.Serialize())) &&
            this.originalResponseTrigger.IsMatch(Conversion.ToHexString(response.Serialize())));
 }