Show / Hide Table of Contents

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 Source

StatusChangeMonitor()

Initializes a new instance.

Declaration
public StatusChangeMonitor()
| Improve this Doc View Source

StatusChangeMonitor(ICardContext)

Initializes a new instance.

Declaration
public StatusChangeMonitor(ICardContext context)
Parameters
Type Name Description
ICardContext context
| Improve this Doc View Source

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 Source

OnCardInsertionEvent

Event raised when a card is inserted in a monitored reader.

Declaration
public EventHandler<OnCardInsertionEventArgs> OnCardInsertionEvent
Field Value
Type Description
System.EventHandler<OnCardInsertionEventArgs>
| Improve this Doc View Source

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 Source

Context

Declaration
public ICardContext Context { get; set; }
Property Value
Type Description
ICardContext

Methods

| Improve this Doc View Source

Start()

Start the monitoring thread.

Declaration
public void Start()
| Improve this Doc View Source

Stop()

Stop the monitoring thread.

Declaration
public void Stop()
| Improve this Doc View Source

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 timeout.

| Improve this Doc View Source

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).

Extension Methods

JsonHelpers.WriteToJsonFile(Object, String)
JsonHelpers.WriteToJsonFile(Object, String, Boolean)
JsonHelpers.WriteToJsonString(Object)
JsonHelpers.WriteToJsonString(Object, Boolean)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX