public async Task Begin(IEnumerable <object> args) { var stripe = "BNA49349824398FHQA".ToCharArray(); var stripe2 = "BNA49349824298FHQA".ToCharArray(); Console.WriteLine(_smartCard .Input(SmartCardData.Create(Code.Authenticate, Pin.Send, stripe))); Console.WriteLine(_smartCard .Input(SmartCardData.Create(Code.Authenticate, Pin.Send, stripe2))); Console.WriteLine(_smartCard .Input(SmartCardData.Create(Code.Connect, Pin.Send, stripe))); Console.WriteLine(_smartCard .Input(SmartCardData.Create(Code.BeginTransmit, Pin.Recieve, stripe))); Console.WriteLine(_smartCard .Input(SmartCardData.Create(Code.BinaryTransmit, Pin.Recieve, stripe, "MyTestData".GetBytes(Encoding.ASCII).ToArray()))); Console.WriteLine(_smartCard .Input(SmartCardData.Create(Code.BinaryTransmit, Pin.Recieve, stripe, "MyTestData next bit".GetBytes(Encoding.ASCII).ToArray()))); Console.WriteLine(_smartCard .Input(SmartCardData.Create(Code.Disconnect, Pin.Send, stripe))); Console.WriteLine(_smartCard .Input(SmartCardData.Create(Code.Request, Pin.Reset, stripe))); Console.WriteLine(_smartCard .Input(SmartCardData.Create(Code.Authenticate, Pin.Send, stripe2))); Console.WriteLine(_smartCard .Input(SmartCardData.Create(Code.Authenticate, Pin.Send, stripe))); }
public ISmartCardData Input(ISmartCardData cardData) { return(SmartCardData.Create(Handle(cardData))); }