mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-06-11 11:03:23 +02:00
Added: GetApplication
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user