Class AddUnitDefectMessage
- Namespace
- Acuit.Pinpoint.Workstation.Messaging
- Assembly
- Acuit.Pinpoint.Workstation.Abstractions.dll
The message raised by the IMessenger service when the operator selects a defect to record for the unit at the station.
public class AddUnitDefectMessage : WorkstationRequestMessage<UnitDefect?>, IWorkstationRequestMessage
- Inheritance
-
AddUnitDefectMessage
- Implements
- Inherited Members
Remarks
By default, Acuit Pinpoint Workstation will handle this message when a unit is at the station by showing a dialog allowing the operator to optionally enter notes and record the defect.
If the defect was successfully added, the message Response will contain the resulting UnitDefect; 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
AddUnitDefectMessage(string, bool)
Initializes a new instance of the AddUnitDefectMessage class.
public AddUnitDefectMessage(string fullDefectName, bool appendCustomPart)
Parameters
fullDefectNamestringThe full name of the defect to add, where the defect parts are separated by PathSeparator.
appendCustomPartboolWhether to prompt the operator to enter a custom defect part to append to the full defect name.
Exceptions
- ArgumentNullException
fullDefectNameis null.
Properties
AppendCustomPart
Gets whether to prompt the operator to enter a custom defect part to append to the full defect name.
public bool AppendCustomPart { get; }
Property Value
FullDefectName
Gets the full name of the defect to add, where the defect parts are separated by PathSeparator.
public string FullDefectName { get; }