Class StatusChangeMonitor
Object monitoring status change (see GetStatusChange(UInt32, AbstractReaderState[])).
Inheritance
System.Object
StatusChangeMonitor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: WSCT.Wrapper.Desktop.Core
Assembly: WSCT.Wrapper.Desktop.dll
Syntax
public class StatusChangeMonitor
Constructors
| Improve this Doc View SourceStatusChangeMonitor()
Initializes a new instance.
Declaration
public StatusChangeMonitor()
StatusChangeMonitor(ICardContext)
Initializes a new instance.
Declaration
public StatusChangeMonitor(ICardContext context)
Parameters
Type | Name | Description |
---|---|---|
ICardContext | context |
StatusChangeMonitor(ICardContext, String[])
Initializes a new instance.
Declaration
public StatusChangeMonitor(ICardContext context, string[] readerNames)
Parameters
Type | Name | Description |
---|---|---|
ICardContext | context | |
System.String[] | readerNames |
Fields
| Improve this Doc View SourceOnCardInsertionEvent
Event raised when a card is inserted in a monitored reader.
Declaration
public EventHandler<OnCardInsertionEventArgs> OnCardInsertionEvent
Field Value
Type | Description |
---|---|
System.EventHandler<OnCardInsertionEventArgs> |
OnCardRemovalEvent
Event raised when a card is removed in a monitored reader.
Declaration
public EventHandler<OnCardRemovalEventArgs> OnCardRemovalEvent
Field Value
Type | Description |
---|---|
System.EventHandler<OnCardRemovalEventArgs> |
Properties
| Improve this Doc View SourceContext
Declaration
public ICardContext Context { get; set; }
Property Value
Type | Description |
---|---|
ICardContext |
Methods
| Improve this Doc View SourceStart()
Start the monitoring thread.
Declaration
public void Start()
Stop()
Stop the monitoring thread.
Declaration
public void Stop()
WaitForCardPresence(UInt32)
Waits for the presence of a card in one of the monitored readers. and returns the information about the change.
Declaration
public AbstractReaderState WaitForCardPresence(uint timeout)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | timeout | Maximum wait time (ms). |
Returns
Type | Description |
---|---|
AbstractReaderState | Informations about the change, or null if no card is present when the |
WaitForChange(UInt32)
Waits for a change of state of one of the monitored readers, and returns details. Events are fired when catch.
Declaration
public void WaitForChange(uint timeout)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | timeout | Maximum wait time (ms). |