Skip to main content

IActorItem

The base interface for all components (items) belonging to an actor.

Namespace: ControlBee.Interfaces

Extends: INotifyPropertyChanged

Properties​

NameTypeDescription
ActorIActorInternalThe actor that owns this item.
ItemPathstringThe hierarchical path of this item within the actor.
NamestringThe display name of this item.
DescstringA description of this item.
VisibleboolWhether this item is visible in the UI.

Methods​

ProcessMessage​

Processes an incoming message directed at this item.

bool ProcessMessage(ActorItemMessage message);

Parameters:

  • message — The message to process.

Returns: true if the message was handled; otherwise, false.

UpdateSubItem​

Updates the state of all sub-items owned by this item.

void UpdateSubItem();

InjectProperties​

Injects configuration properties from the given data source.

void InjectProperties(ISystemPropertiesDataSource dataSource);

Parameters:

  • dataSource — The data source containing the properties to inject.

Init​

Initializes this item after construction.

void Init();

PostInit​

Performs post-initialization tasks after all items have been initialized.

void PostInit();

See Also​