Table of Contents

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

unitAtStation IUnitAtStation

The IUnitAtStation representing the unit at the station.

unitComponent UnitComponent

The unit buyoff information.

reasonInvalid string

The optional reason that the component is invalid, if it is invalid.

Exceptions

ArgumentNullException

unitAtStation is null.

ArgumentNullException

unitComponent is null.

Properties

ReasonInvalid

Gets the optional reason that the component is invalid, if it is invalid.

public string? ReasonInvalid { get; }

Property Value

string

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; }

Property Value

UnitComponent