Share via


CashDrawerBase Class

2/27/2008

Exposes functionality required for support of cash drawer devices.

Namespace: Microsoft.PointOfService.BaseServiceObjects
Assembly: Microsoft.PointOfService.ControlBase (in microsoft.pointofservice.controlbase.dll)

Syntax

'Declaration
Public MustInherit Class CashDrawerBase
    Inherits CashDrawerBasic
public abstract class CashDrawerBase : CashDrawerBasic
public ref class CashDrawerBase abstract : public CashDrawerBasic
public abstract class CashDrawerBase extends CashDrawerBasic
public abstract class CashDrawerBase extends CashDrawerBasic

Remarks

The CashDrawerBase class derives from the CashDrawerBasic class and contains most of the functionality required for support of cash drawer devices. When deriving from CashDrawerBase, service objects need only implement the OpenDrawerImpl, CheckHealth, and DirectIO methods. (OpenDrawerImpl is required for the physical opening of the cash drawer.) Optionally, service objects can implement the OnDrawerStateChanged event to be notified when the drawer state has been changed by other processes.

The CashDrawerBase class provides the core functionality for opening, claiming, and enabling cash drawer devices. Typically, though, the service object will want to override these methods to add its own custom processing. (An example would be to update device statistics during the Open method, or to bring the device online when the application enables it.) When overriding these methods, the service object must call the base class implementation.

Inheritance Hierarchy

System.Object
   Microsoft.PointOfService.PosDevice
     Microsoft.PointOfService.PosCommon
       Microsoft.PointOfService.CashDrawer
         Microsoft.PointOfService.BasicServiceObjects.CashDrawerBasic
          Microsoft.PointOfService.BaseServiceObjects.CashDrawerBase

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

Reference

CashDrawerBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace