Subsembly: the Smart Solution for Smart Cards in .NET - How do I use it?
(Page 4 of 5 )
Using Subsembly is as easy as adding a reference in your project. You can do it by choosing References and, on right click popup menus, choose Add Reference...and just browse for the appropriate assembly (any one of the Subsembly DLLs) that you wish to use. Next you provide an appropriate namespace in the form of using the keyword (C#) or the Imports (VB .NET). Now you can easily use the classes and other interfaces exposed by the Subsembly. You can have a look at the samples provided with Subsembly for a good example, because they are well commented and easy to follow.
Putting Assemblies in place
The classes of the Smartcard Subsembly Framework are grouped into five distinct namespaces. The classes of each namespace are bundled in a separate .NET assembly DLL. Let’s have a look on each of these:
- Subsembly.SmartCard (Subsembly.SmartCard.dll) This is responsible for the high level access to smart card readers and smart cards, completely independent of actual smart card reader API or driver technology.
- Subsembly.SmartCard.PcSc (Subsembly.SmartCard.PcSc.dll) This assembly provides low level PC/SC Workgroup API compliant smart card reader access and full PC/SC Workgroup API functionality. This entire namespace actually represents the product SmartCard Subsembly (PC/SC Edition), which is a subset of the Smartcard Subsembly (Professional) distribution.
- Subsembly.SmartCard.CtApi (Subsembly.SmartCard.CtApi.dll) This assembly provides low level CT-API based smart card reader access and full CT-API and CT-BCS functionality. This namespace actually represents the product Smartcard Subsembly (CT-API Edition), which is also a subset of the Smartcard Subsembly (Professional) distribution.
- Subsembly.SmartCard.MCard (Subsembly.SmartCard.MCard.dll)
This assembly provides low level MCARD API based memory card access and Smartcard Subsembly Framework extension. It depends on the Subsembly.SmartCard.PcSc and Subsembly.SmartCard. This extension is included in the Smartcard Subsembly (Professional) distribution. - Subsembly.SmartCard.Acr80 (Subsembly.SmartCard.Acr80.dll)
This assembly provides low level ACR80 API based smart card reader access and Smartcard Subsembly Framework extension. This module depends on Subsembly.SmartCard. This extension is included in the Smartcard Subsembly (Professional) distribution.
The following figure shows the Smartcard Subsembly assemblies and their dependencies.

Figure 1: Smartcard Subsembly assemblies and their dependencies.
Next: How much does it cost? >>
More .NET Articles
More By Digvijay Chauhan