Class ScanComponentResult
- Namespace
- Acuit.Pinpoint.Workstation.Messaging
- Assembly
- Acuit.Pinpoint.Workstation.Abstractions.dll
The result of a component scan request.
public class ScanComponentResult
- Inheritance
-
ScanComponentResult
- Inherited Members
Constructors
ScanComponentResult()
public ScanComponentResult()
Properties
Canceled
Gets a ScanComponentResult indicating that the scan was canceled.
public static ScanComponentResult Canceled { get; }
Property Value
IsCanceled
Gets whether the component scan was canceled. The scan will be canceled if the operator cancels or skips the scan, or if the scan is cancelled via CancellationToken.
public bool IsCanceled { get; }
Property Value
ReasonInvalid
Gets the reason that the component is invalid, if it is invalid.
public string? ReasonInvalid { get; }
Property Value
UnitComponent
Gets the unit component information, or null if the scan was canceled.
public UnitComponent? UnitComponent { get; }
Property Value
Methods
Create(UnitComponent, string?)
Creates a ScanComponentResult instance for a component scan result.
public static ScanComponentResult Create(UnitComponent unitComponent, string? reasonInvalid)
Parameters
unitComponentUnitComponentThe unit component information.
reasonInvalidstringThe reason that the component is invalid, if it is invalid.
Returns
- ScanComponentResult
A new ScanComponentResult instance.
Exceptions
- ArgumentNullException
unitComponentis null.