Table of Contents

Class ComponentEventArgs

Namespace
Acuit.Pinpoint.Server
Assembly
Acuit.Pinpoint.Server.Interfaces.dll

Arguments passed to component event handlers.

public class ComponentEventArgs : EventArgs
Inheritance
ComponentEventArgs
Inherited Members

Constructors

ComponentEventArgs(ComponentStatus, Unit, UnitComponent)

Initializes a new instance of the ComponentEventArgs class.

public ComponentEventArgs(ComponentStatus status, Unit unit, UnitComponent removedUnitComponent)

Parameters

status ComponentStatus

The component status.

unit Unit

The unit information.

removedUnitComponent UnitComponent

The component information about any component that was removed as a result of this event.

Properties

RemovedUnitComponent

Gets the component information about any component that was removed as a result of this event, or null if there was none removed.

public UnitComponent RemovedUnitComponent { get; }

Property Value

UnitComponent

Remarks

Only the ComponentType associated entity will not be initialized (i.e., other navigation properties will be null or empty collections).

Status

Gets the component status, which is what will be sent to the client that initiated the component scan or removal.

public ComponentStatus Status { get; }

Property Value

ComponentStatus

Remarks

The UnitComponent property will contain the new component status. If a component was removed, IsInstalled will be false.

Unit

Gets the unit information.

public Unit Unit { get; }

Property Value

Unit

Remarks

No associated entities will be initialized (i.e., navigation properties will be null or empty collections).