Class UnitComponentChangedMessage
- Namespace
- Acuit.Pinpoint.Workstation.Messaging
- Assembly
- Acuit.Pinpoint.Workstation.Abstractions.dll
The message raised by the IMessenger service when a component status changes for a unit at the station.
public class UnitComponentChangedMessage : UnitEventMessage
- Inheritance
-
UnitComponentChangedMessage
- Inherited Members
Constructors
UnitComponentChangedMessage(IUnitAtStation, UnitComponent, string?)
Initializes a new instance of the UnitComponentChangedMessage class.
public UnitComponentChangedMessage(IUnitAtStation unitAtStation, UnitComponent unitComponent, string? reasonInvalid)
Parameters
unitAtStationIUnitAtStationThe IUnitAtStation representing the unit at the station.
unitComponentUnitComponentThe unit buyoff information.
reasonInvalidstringThe optional reason that the component is invalid, if it is invalid.
Exceptions
- ArgumentNullException
unitAtStationis null.- ArgumentNullException
unitComponentis null.
Properties
ReasonInvalid
Gets the optional reason that the component is invalid, if it is invalid.
public string? ReasonInvalid { get; }
Property Value
Remarks
This is only used when the "allowInvalid" setting is not set for the line. When the "allowInvalid" setting is set, a business logic exception will occur for invalid component scans.
UnitComponent
Gets the component information.
public UnitComponent UnitComponent { get; }