The CardReaderObserver is a major unit within BasicCard Library/Framework. Through card reader observer client applications can get access to a initialized ICardService object attached to an inserted smart card.

Namespace: BasicCard.Framework
Assembly: BasicCard (in BasicCard.dll) Version: 2.5.2.0 (2.5.2.0)

Syntax

C#
[CLSCompliantAttribute(true)]
public class CardReaderObserver : MarshalByRefObject
Visual Basic
<CLSCompliantAttribute(true)>
Public Class CardReaderObserver
	Inherits MarshalByRefObject
Visual C++
[CLSCompliantAttribute(true)]
public ref class CardReaderObserver : public MarshalByRefObject
F#
[<CLSCompliantAttribute(true)>]
type CardReaderObserver =  
    class
        inherit MarshalByRefObject
    end

Remarks

The CardReaderObserver is the central unit of the framework. Before you can use the CardReaderObserver you must start the observer by calling Start()()()().

Once the observer is up and running it will monitor all detected card reader. You can register for card events by use of AddCardEventHandler(CardEventHandler) method. But typically you just establish a initialized card service object by calling WaitForCardService(ICardService, TimeSpan).

So as a general rule application developer should implement a ICardService, e.g. by extending AbstractBasicCardService. Then he can apply for a sevice object through WaitForCardService(ICardService, TimeSpan).

Caution
You cannot create CardReaderObserver objects. Use single instance of CardReaderObserver through Instance.

Inheritance Hierarchy

System..::..Object
  System..::..MarshalByRefObject
    BasicCard.Framework..::..CardReaderObserver

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.

See Also