Added: GetApplication

This commit is contained in:
TheJoKlLa
2020-09-17 16:07:58 +02:00
parent 187dfc4f4a
commit 2e68052008
7 changed files with 230 additions and 72 deletions

View File

@ -31,18 +31,7 @@ namespace NFC.Readers.PCSC
public CommandApdu Convert(APDUCommand apdu_cmd)
{
CommandApdu apdu = new CommandApdu(IsoCase.Case2Short, _ISOReader.ActiveProtocol)
{
CLA = apdu_cmd.Class,
INS = apdu_cmd.Instruction,
P1 = apdu_cmd.Parameter1,
P2 = apdu_cmd.Parameter2,
Data = apdu_cmd.Data,
Le = apdu_cmd.LengthExpected
};
CommandApdu apdu = (CommandApdu)apdu_cmd;
return apdu;
}

View File

@ -25,10 +25,10 @@ namespace NFC.Readers.PCSC
public void Dispose()
{
stop();
Stop();
}
public void start()
public void Start()
{
_ContextFactory = ContextFactory.Instance;
_SCardContext = _ContextFactory.Establish(SCardScope.System);
@ -40,7 +40,7 @@ namespace NFC.Readers.PCSC
CardDiscovered?.Invoke(this, _Card);
}
public void stop()
public void Stop()
{
CardLost?.Invoke(this, _Card);