Wait for a card supported by specified service to be available.
Overload List
Name | Description | |
---|---|---|
![]() | WaitForCardService(ICardService, TimeSpan) | |
![]() | WaitForCardService(ICardService, TimeSpan, array<ICardReader>[]()[][]) |
Remarks
This function will not return until either:
- A matching card was found.
- The timeout is exceeded.
- It is interrupted by InterruptWaitForCard(ICardSelector).
Examples
Example C#:
Example Visual Basic:
![]() | |
---|---|
BasicCardService service=(BasicCardService) CardReaderObserver.Instance.WaitForCardService(new BasicCardService(), TimeSpan.MaxValue); if (null!=service) { // using service in here } |
![]() | |
---|---|
Dim service as BasicCardService service = CardReaderObserver.Instance.WaitForCardService(New BasicCardService(), TimeSpan.MaxValue) if Not (service Is Nothing) then ' using service in here end if |