References the connection to a chip card.

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

Syntax

C#
[CLSCompliantAttribute(true)]
public interface ICardConnection : IDisposable
Visual Basic
<CLSCompliantAttribute(true)>
Public Interface ICardConnection
	Inherits IDisposable
Visual C++
[CLSCompliantAttribute(true)]
public interface class ICardConnection : IDisposable
F#
[<CLSCompliantAttribute(true)>]
type ICardConnection =  
    interface
        interface IDisposable
    end

Remarks

A card connection is required to use a chip card through this library. To get a ICardConnection object the ICardReader.Connect is used. Application developer typically do not need to use the connection objects directly. Instead they should extend an existing ICardService implementation.

A card connection may be established for shared use. This means other programs or other parts of this program may use the same card at the same time it is used by this card object. This was choosen to allow shared use of a card between different applications. As a backdraw this can cause security breaches since security conditions established by one application may be used by another application. To prevent this you can either establish a none shared connection or temporarly lock the card.

Caution
A card connection is not threadsafe. If you need to use a single connection within several threads, you should synchronize access to card connection.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also