Class UnitScannedMessage
- Namespace
- Acuit.Pinpoint.Workstation.Messaging
- Assembly
- Acuit.Pinpoint.Workstation.Abstractions.dll
The message raised by the IMessenger service when a unit is scanned.
public class UnitScannedMessage : UnitEventMessage, IAsyncHandlingMessage
- Inheritance
-
UnitScannedMessage
- Implements
- Inherited Members
Remarks
This message is sent immediately after Acuit Pinpoint processes the unit scan and returns the status, and before workflow errors and alerts are processed (i.e., displayed).
If the unit was already released by Acuit Pinpoint (which can occur for automated stations that immediately release units as they are scanned), then IsReleased will be true.
Constructors
UnitScannedMessage(IUnitAtStation, CancellationToken)
Initializes a new instance of the UnitScannedMessage class.
public UnitScannedMessage(IUnitAtStation unitAtStation, CancellationToken cancellationToken)
Parameters
unitAtStationIUnitAtStationThe IUnitAtStation representing the unit at the station.
cancellationTokenCancellationTokenA token that can request cancellation of asynchronous handlers.
Exceptions
- ArgumentNullException
unitAtStationis null.
Properties
AsyncHandlers
Gets the AsyncHandlers instance to which asynchronous handlers can be added.
public AsyncHandlers AsyncHandlers { get; }