Crescendo SDK
Loading...
Searching...
No Matches
CrescendoDLL.PCSC.ReaderChangeInfo Class Reference

Represents a specific change that occurred to a smart card reader or token during monitoring. More...

Public Member Functions

 ReaderChangeInfo (string readerName, ChangeType changeType, ReaderInfo? previousState=null, ReaderInfo? currentState=null)
 Initializes a new instance of the CrescendoDLL.PCSC.ReaderChangeInfo class.
 

Properties

ChangeType ChangeType [get, set]
 Gets or sets the type of change that occurred.
 
ReaderInfoCurrentState [get, set]
 Gets or sets the state of the reader after the change occurred.
 
ReaderInfoPreviousState [get, set]
 Gets or sets the state of the reader before the change occurred.
 
string ReaderName [get, set]
 Gets or sets the name of the reader where the change occurred.
 

Detailed Description

Represents a specific change that occurred to a smart card reader or token during monitoring.

This class provides detailed information about state changes detected by the PC/SC monitoring system, including both the previous and current states for comparison.

Constructor & Destructor Documentation

◆ ReaderChangeInfo()

CrescendoDLL.PCSC.ReaderChangeInfo.ReaderChangeInfo ( string  readerName,
ChangeType  changeType,
ReaderInfo previousState = null,
ReaderInfo currentState = null 
)
inline

Initializes a new instance of the CrescendoDLL.PCSC.ReaderChangeInfo class.

Parameters
readerNameThe name of the reader where the change occurred.
changeTypeThe type of change that occurred.
previousStateThe state before the change, if applicable.
currentStateThe state after the change, if applicable.

The previousState and currentState parameters should be set appropriately based on the changeType :

References CrescendoDLL.PCSC.ReaderChangeInfo.CurrentState, CrescendoDLL.PCSC.ReaderChangeInfo.PreviousState, and CrescendoDLL.PCSC.ReaderChangeInfo.ReaderName.

Property Documentation

◆ ChangeType

ChangeType CrescendoDLL.PCSC.ReaderChangeInfo.ChangeType
getset

Gets or sets the type of change that occurred.

A CrescendoDLL.PCSC.ChangeType value indicating the specific type of change.

This property determines which of the state properties (CrescendoDLL.PCSC.ReaderChangeInfo.PreviousState, CrescendoDLL.PCSC.ReaderChangeInfo.CurrentState) contain valid data.

◆ CurrentState

ReaderInfo? CrescendoDLL.PCSC.ReaderChangeInfo.CurrentState
getset

Gets or sets the state of the reader after the change occurred.

A CrescendoDLL.PCSC.ReaderInfo object representing the current state, or null if the reader was removed.

This property is null only for CrescendoDLL.PCSC.ChangeType.ReaderRemoved change type.

Referenced by CrescendoDLL.PCSC.ReaderChangeInfo.ReaderChangeInfo().

◆ PreviousState

ReaderInfo? CrescendoDLL.PCSC.ReaderChangeInfo.PreviousState
getset

Gets or sets the state of the reader before the change occurred.

A CrescendoDLL.PCSC.ReaderInfo object representing the previous state, or null if there was no previous state (e.g., reader addition).

This property is null for CrescendoDLL.PCSC.ChangeType.ReaderAdded and CrescendoDLL.PCSC.ChangeType.Initial change types.

Referenced by CrescendoDLL.PCSC.ReaderChangeInfo.ReaderChangeInfo().

◆ ReaderName

string CrescendoDLL.PCSC.ReaderChangeInfo.ReaderName
getset

Gets or sets the name of the reader where the change occurred.

The system-assigned name of the PC/SC reader that experienced the change.

This corresponds to the CrescendoDLL.PCSC.ReaderInfo.ReaderName property of the affected reader.

Referenced by CrescendoDLL.PCSC.ReaderChangeInfo.ReaderChangeInfo().