CardTerminalManager class is a singleton that is the one and only instance that manages
card terminals and tracks card insertions and removals.
Namespace:
CardWerk.SmartCard
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Top
Top
Top
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Public NotInheritable Class CardTerminalManager
This language is not supported or no code example is available.
public sealed class CardTerminalManager
This language is not supported or no code example is available.
public ref class CardTerminalManager sealed
This language is not supported or no code example is available.
Name | Description | |
---|---|---|
![]() |
PollInterval | Polling interval in milliseconds. Every PollInterval milliseconds the card position of the primary slot of the monitored card terminals are polled. |
![]() |
Registry | The CardTerminalRegistry that is used by this CardTerminalManager. |
![]() ![]() |
Singleton | Use this static property to get access to the one and only CardTerminalManager singleton. |
![]() |
SlotCount | Number of monitored card terminal slots. |
![]() |
SlotCountMinimum | Minimum of card terminal slots. |
![]() |
StartedUp | Indicates whether the card terminal manager was started up by Startup. |
Name | Description | |
---|---|---|
![]() |
CreateCardTerminal(CardTerminalConfig) | Instantiates and initializes a card terminal from a given card terminal configuration. |
![]() |
DelistCardTerminal(ICardTerminal) | Removes a card terminal from the list of monitored card terminals. |
![]() |
EnlistCardTerminal(ICardTerminal) | Adds a card terminal to the list of monitored card terminals. |
![]() |
GetSlotNames() | Returns an array with all names of all monitored card terminal slots. |
![]() |
GetSlots() | Returns an array with references to the monitored card terminal slots. |
![]() |
Shutdown() | Completely shuts down the card terminal manager, delisting and disposing all monitored card terminals. |
![]() |
Startup(bool, bool, string) | Completely Starts up the card terminal manager adding all registered and enabled card terminals to the monitored card terminals list. |
![]() |
Startup(bool, string) | Starts CardTerminalManager. |
Name | Description | |
---|---|---|
![]() |
CardInsertedEvent | Event that will be raised whenever a card is inserted in any one of the monitored card terminals primary slots. |
![]() |
CardRemovedEvent | Event that will be raised whenever a card is removed from any one of the monitored card terminals primary slots. |
![]() |
CardRequiresRemovalEvent | Event that will be raised whenever a card must be removed from any of the monitored card terminal's primary slot. |
![]() |
CardTerminalFoundEvent | Event that will be raised whenever the a card terminal (slot) gets found. Example: user connects an additional reader after the singleton already started. |
![]() |
CardTerminalLostEvent | Event that will be raised whenever the card terminal connection gets lost. Example: PC/SC smart card service stopped after terminal startup. |
There is always only a single instance of CardTerminalManager class, hence it is called a singleton. Applications must use the public Singleton property in order to get access to the card terminal manager.
The card terminal manager provides events for catching card terminal events such as card insertion or removal. The card terminal manager runs a background thread that polls the card insertion state of all monitored card terminal slots and raises events whenever a card is inserted or removed.
Initially the CardTerminalManager manages no card terminals at all. An application must call Startup in order to automatically enlist all registered card terminals.