Class AsciiOperationHostBarcode
- Namespace
- TechnologySolutions.Rfid.AsciiOperations
- Assembly
- TechnologySolutions.Rfid.Operations.dll
An implementation of IReaderOperationHostBarcode.
public class AsciiOperationHostBarcode : ReaderOperation, IReaderOperationHostBarcode, IReaderOperation, ITriggerSource
- Inheritance
-
AsciiOperationHostBarcode
- Implements
- Inherited Members
Constructors
AsciiOperationHostBarcode()
Initializes a new instance of the ReaderOperationHostBarcode class
public AsciiOperationHostBarcode()
Properties
AsciiReader
Gets the AsciiReader for the operation
protected IAsciiReader AsciiReader { get; }
Property Value
HostBarcodeHandler
Gets or sets the IHostBarcodeHandler to command based on the specified reader TriggerIndex
public IHostBarcodeHandler HostBarcodeHandler { get; set; }
Property Value
Exceptions
- InvalidOperationException
If the host barcode handler is changed and the operation is not disabled
Methods
EnabledConnectedAsync()
Returns the task to configure the operation as it is enabled
public override Task EnabledConnectedAsync()
Returns
- Task
The task to configure the operation as it is enabled
PerformOperationAsync(CancellationToken)
Returns the task to perform the operation by initiating a barcode scan
protected override Task PerformOperationAsync(CancellationToken cancelToken)
Parameters
cancelToken
CancellationTokenUsed to cancel the operation
Returns
- Task
The task to perform the operation
StopAsync()
Returns a task to stop the operation by cancelling any pending scan
public override Task StopAsync()
Returns
- Task
The task to stop the operation