Class UnitReleasedMessage
- Namespace
- Acuit.Pinpoint.Workstation.Messaging
- Assembly
- Acuit.Pinpoint.Workstation.Abstractions.dll
The message raised by the IMessenger service when a unit is released.
public class UnitReleasedMessage : UnitEventMessage, IAsyncHandlingMessage
- Inheritance
-
UnitReleasedMessage
- Implements
- Inherited Members
Remarks
This message is sent after any workflow errors from the unit release have been processed (i.e., displayed).
Constructors
UnitReleasedMessage(IUnitAtStation, UnitReleaseStatus?, Exception?, CancellationToken)
Initializes a new instance of the UnitReleasedMessage class.
public UnitReleasedMessage(IUnitAtStation unitAtStation, UnitReleaseStatus? status, Exception? exception, CancellationToken cancellationToken)
Parameters
unitAtStationIUnitAtStationThe IUnitAtStation representing the unit at the station.
statusUnitReleaseStatusThe unit release status, or null if it is not available.
exceptionExceptionThe error that occurred when attempting to release the unit in Acuit Pinpoint, or null if no error occurred.
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; }
Property Value
Exception
Gets the error that occurred when attempting to release the unit in Acuit Pinpoint, or null if no error occurred.
public Exception? Exception { get; }
Property Value
Remarks
This will not be null if the unit was not successfully released from Acuit Pinpoint, but is being released anyway as far as this workstation is concerned.
Status
Gets the unit release status, or null if it is not available.
public UnitReleaseStatus? Status { get; }
Property Value
Remarks
This can be null when this is not a serialized unit station type, or when the unit is being released even though an error occurred when attempting to release it in Acuit Pinpoint.