Table of Contents

Class AsciiOperationBarcode

Namespace
TechnologySolutions.Rfid.AsciiOperations
Assembly
TechnologySolutions.Rfid.Operations.dll

An implementation of IReaderOperationBarcode. Performs a single shot barcode on the operation on the reader as the trigger is pressed

public class AsciiOperationBarcode : ReaderOperation, IReaderOperationBarcode, IReaderOperation, ITriggerSource
Inheritance
AsciiOperationBarcode
Implements
Inherited Members

Constructors

AsciiOperationBarcode()

Initializes a new instance of the ReaderOperationBarcode class

public AsciiOperationBarcode()

Properties

AsciiReader

Gets the AsciiReader for the operation

protected IAsciiReader AsciiReader { get; }

Property Value

IAsciiReader

Methods

DisabledDisconnectedAsync()

Returns the task that reverses the configuration of the reader to perform barcode scans on the requested trigger as the operation is disabled

public override Task DisabledDisconnectedAsync()

Returns

Task

The task to reverse the configuration of the reader

EnabledConnectedAsync()

Returns the task that configures the reader to perform barcode scans on the requested trigger as the operation is enabled

public override Task EnabledConnectedAsync()

Returns

Task

The task to configure the operation

IsBarcodeAvailable()

Returns a value indicating whether the reader has a barcode scanner. True = available. False = not available. Null (Nothing in Visual Basic) = cannot be determined at this time

public bool? IsBarcodeAvailable()

Returns

bool?

A value indicating whether the reader has a barcode scanner. True = available. False = not available. Null (Nothing in Visual Basic) = cannot be determined at this time

Remarks

The operation has to be connected to the reader to determine whether a barcode engine is present

PerformOperationAsync(CancellationToken)

When configured as a manual or commanded trigger operation performs a barcode scan

protected override Task PerformOperationAsync(CancellationToken cancelToken)

Parameters

cancelToken CancellationToken

Used to cancel the operation

Returns

Task

The task to perform a barcode scan

RaiseBarcodeScanned(BarcodeEventArgs)

Raises the BarcodeScanned event

protected virtual void RaiseBarcodeScanned(BarcodeEventArgs e)

Parameters

e BarcodeEventArgs

Data provided for the event

Events

BarcodeScanned

Raised when a barcode is scanned

public event EventHandler<BarcodeEventArgs> BarcodeScanned

Event Type

EventHandler<BarcodeEventArgs>