Class RepairUnitDefectMessage
- Namespace
- Acuit.Pinpoint.Workstation.Messaging
- Assembly
- Acuit.Pinpoint.Workstation.Abstractions.dll
The message raised by the IMessenger service when the operator initiates repairing a defect for the unit at the station.
public class RepairUnitDefectMessage : WorkstationRequestMessage<UnitDefectRepair?>, IWorkstationRequestMessage
- Inheritance
-
RepairUnitDefectMessage
- Implements
- Inherited Members
Remarks
By default, Acuit Pinpoint Workstation will handle this message when a unit is at the station and UnitDefectId matches a defect recorded for the unit by showing a dialog allowing the operator to select a repair, and then showing another dialog allowing the operator to optionally enter notes and record the repair.
If the repair was successfully added, the message Response will contain the resulting UnitDefectRepair; otherwise, it will contain null (i.e., the operator canceled the dialog).
A plug-in can customize the default behavior by registering a recipient for this message. To suppress the default behavior, the plug-in should use Reply(T) to set the response to the message.
A plug-in can emulate the operator action that this message represents by sending this message.
Constructors
RepairUnitDefectMessage(int)
Initializes a new instance of the RepairUnitDefectMessage class.
public RepairUnitDefectMessage(int unitDefectId)
Parameters
unitDefectIdintThe unit defect identifier for the defect that is being repaired.
Properties
UnitDefectId
Gets the unit defect identifier for the defect that is being repaired.
public int UnitDefectId { get; }