Gate Class
2/27/2008
Defines the programmatic interface for a UPOS Gate device.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustInherit Class Gate
Inherits PosCommon
public abstract class Gate : PosCommon
public ref class Gate abstract : public PosCommon
public abstract class Gate extends PosCommon
public abstract class Gate extends PosCommon
Remarks
Various doors and gates can be controlled by the Gate device category. Examples include the following:
Kiosk front door which can be opened by an application for servicing.
Self Checkout door which can be opened by an application for servicing.
Exit gate in kiosk or self checkout environments where a customer scans a bar code printed on the receipt in order to open the gate.
Required Version
The Gate class requires POS for .NET version 1.12 or later versions.
-
Capabilities
The Gate device has the following capability:
- Supports a command to "open" the gate.
The Gate device may have the following additional capability:
- Gate status reporting to indicate that the service can determine whether the gate is opened or closed in environments where the gate can be accessed through a hardware port.
Device Sharing
The gate is a shareable device. The device sharing rules are as follows:
After you open and enabling the device, the application may access all properties and methods and receives status update events.
If more than one application has opened and enabled the device, each of these applications may access its properties and methods. Status update events are raised to all these applications.
If one application claims the gate, then only that application may call the OpenGate and WaitForGateClose methods. This feature provides a degree of security, in such a way that these methods may effectively be restricted to the main application if that application claims the device at startup.
Inheritance Hierarchy
System.Object
Microsoft.PointOfService.PosDevice
Microsoft.PointOfService.PosCommon
Microsoft.PointOfService.Gate
Microsoft.PointOfService.BasicServiceObjects.GateBasic
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.