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)

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.
public final class CardTerminalManager
This language is not supported or no code example is available.
Name Description
Public property PollInterval Polling interval in milliseconds. Every PollInterval milliseconds the card position of the primary slot of the monitored card terminals are polled.
Public property Registry The CardTerminalRegistry that is used by this CardTerminalManager.
Public property Static Singleton Use this static property to get access to the one and only CardTerminalManager singleton.
Public property SlotCount Number of monitored card terminal slots.
Public property SlotCountMinimum Minimum of card terminal slots.
Public property StartedUp Indicates whether the card terminal manager was started up by Startup.
Top
Name Description
Public method CreateCardTerminal(CardTerminalConfig) Instantiates and initializes a card terminal from a given card terminal configuration.
Public method DelistCardTerminal(ICardTerminal) Removes a card terminal from the list of monitored card terminals.
Public method EnlistCardTerminal(ICardTerminal) Adds a card terminal to the list of monitored card terminals.
Public method GetSlotNames() Returns an array with all names of all monitored card terminal slots.
Public method GetSlots() Returns an array with references to the monitored card terminal slots.
Public method Shutdown() Completely shuts down the card terminal manager, delisting and disposing all monitored card terminals.
Public method Startup(bool, bool, string) Completely Starts up the card terminal manager adding all registered and enabled card terminals to the monitored card terminals list.
Public method Startup(bool, string) Starts CardTerminalManager.
Top
Name Description
Public event CardInsertedEvent Event that will be raised whenever a card is inserted in any one of the monitored card terminals primary slots.
Public event CardRemovedEvent Event that will be raised whenever a card is removed from any one of the monitored card terminals primary slots.
Public event CardRequiresRemovalEvent Event that will be raised whenever a card must be removed from any of the monitored card terminal's primary slot.
Public event 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.
Public event CardTerminalLostEvent Event that will be raised whenever the card terminal connection gets lost. Example: PC/SC smart card service stopped after terminal startup.
Top

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.

.NET Framework

Supported in: 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

.NET Core

Supported in: 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0

.NET Standard

Supported in: 2.0