C# 클래스 Lando.LowLevel.LowLevelCardReader

상속: IDisposable
파일 보기 프로젝트 열기: G-Rad/Lando 1 사용 예제들

공개 메소드들

메소드 설명
Connect ( string cardreaderName, System.Guid idOverride = null ) : Lando.LowLevel.ResultsTypes.ConnectResult

Establishing a connection to smart card contained by a specific reader. Card reader name to connection.

DisconnectCard ( Lando.LowLevel.Card cardForDisconnect ) : Lando.LowLevel.ResultsTypes.OperationResult
Dispose ( ) : void

The dispose method that implements IDisposable.

EstablishContext ( ) : Lando.LowLevel.ResultsTypes.OperationResult

Establish Context of Resource Manager.

GetCardId ( Lando.LowLevel.Card cardToRead ) : Lando.LowLevel.ResultsTypes.ReceiveCardIdResult

Returns a card's UID.

GetCardReadersList ( string &readersList ) : Lando.LowLevel.ResultsTypes.OperationResult

Return card readers list.

GetCardState ( Lando.LowLevel.Card cardToRead ) : Lando.LowLevel.ResultsTypes.OperationResult

The function provides the current status of a smart card in a reader.

ReleaseAllContexts ( ) : void
SetBuzzerOutputForCardDetection ( Lando.LowLevel.Card card, bool shouldBuzzWhenCardDetected ) : Lando.LowLevel.ResultsTypes.ApduOperationResult
UpdateLedAndBuzzer ( Lando.LowLevel.Card card, byte ledState, byte t1, byte t2, byte repetitionNumber, byte buzzer ) : Lando.LowLevel.ResultsTypes.ApduOperationResult
WaitForChanges ( Lando.LowLevel.CardreaderStatus &statuses ) : Lando.LowLevel.ResultsTypes.OperationResult

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

The virtual dispose method that allows classes inherithed from this one to dispose their resources.

비공개 메소드들

메소드 설명
ConvertReadersBuffer ( byte readersBuffer ) : string[]

Convert bytes structure to string list.

DisconnectCardMultiHandlesAware ( Lando.LowLevel.Card cardForDisconnect ) : Lando.LowLevel.ResultsTypes.OperationResult

Terminates all connections for given card.

The card very likely is not attached to the cardreader at the moment of execution, so SCARD_LEAVE_CARD is used here to avoid error log messages from underlying winscard api.

EstablishContextIfNotEstablished ( ) : IntPtr
ReleaseContext ( IntPtr context ) : Lando.LowLevel.ResultsTypes.OperationResult
SendAPDU ( Lando.LowLevel.Card card, byte bytesToSend, int expectedRequestLength ) : Lando.LowLevel.ResultsTypes.ApduResponse

메소드 상세

Connect() 공개 메소드

Establishing a connection to smart card contained by a specific reader. Card reader name to connection.
public Connect ( string cardreaderName, System.Guid idOverride = null ) : Lando.LowLevel.ResultsTypes.ConnectResult
cardreaderName string
idOverride System.Guid
리턴 Lando.LowLevel.ResultsTypes.ConnectResult

DisconnectCard() 공개 메소드

public DisconnectCard ( Lando.LowLevel.Card cardForDisconnect ) : Lando.LowLevel.ResultsTypes.OperationResult
cardForDisconnect Lando.LowLevel.Card
리턴 Lando.LowLevel.ResultsTypes.OperationResult

Dispose() 공개 메소드

The dispose method that implements IDisposable.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

The virtual dispose method that allows classes inherithed from this one to dispose their resources.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

EstablishContext() 공개 메소드

Establish Context of Resource Manager.
public EstablishContext ( ) : Lando.LowLevel.ResultsTypes.OperationResult
리턴 Lando.LowLevel.ResultsTypes.OperationResult

GetCardId() 공개 메소드

Returns a card's UID.
public GetCardId ( Lando.LowLevel.Card cardToRead ) : Lando.LowLevel.ResultsTypes.ReceiveCardIdResult
cardToRead Lando.LowLevel.Card
리턴 Lando.LowLevel.ResultsTypes.ReceiveCardIdResult

GetCardReadersList() 공개 메소드

Return card readers list.
public GetCardReadersList ( string &readersList ) : Lando.LowLevel.ResultsTypes.OperationResult
readersList string
리턴 Lando.LowLevel.ResultsTypes.OperationResult

GetCardState() 공개 메소드

The function provides the current status of a smart card in a reader.
public GetCardState ( Lando.LowLevel.Card cardToRead ) : Lando.LowLevel.ResultsTypes.OperationResult
cardToRead Lando.LowLevel.Card
리턴 Lando.LowLevel.ResultsTypes.OperationResult

ReleaseAllContexts() 공개 메소드

public ReleaseAllContexts ( ) : void
리턴 void

SetBuzzerOutputForCardDetection() 공개 메소드

public SetBuzzerOutputForCardDetection ( Lando.LowLevel.Card card, bool shouldBuzzWhenCardDetected ) : Lando.LowLevel.ResultsTypes.ApduOperationResult
card Lando.LowLevel.Card
shouldBuzzWhenCardDetected bool
리턴 Lando.LowLevel.ResultsTypes.ApduOperationResult

UpdateLedAndBuzzer() 공개 메소드

public UpdateLedAndBuzzer ( Lando.LowLevel.Card card, byte ledState, byte t1, byte t2, byte repetitionNumber, byte buzzer ) : Lando.LowLevel.ResultsTypes.ApduOperationResult
card Lando.LowLevel.Card
ledState byte
t1 byte
t2 byte
repetitionNumber byte
buzzer byte
리턴 Lando.LowLevel.ResultsTypes.ApduOperationResult

WaitForChanges() 공개 메소드

public WaitForChanges ( Lando.LowLevel.CardreaderStatus &statuses ) : Lando.LowLevel.ResultsTypes.OperationResult
statuses Lando.LowLevel.CardreaderStatus
리턴 Lando.LowLevel.ResultsTypes.OperationResult