IDeviceManager
Manages the registry of hardware devices in the system.
Namespace: ControlBee.Interfaces
Methods
Get
Retrieves a device by its name.
IDevice? Get(string name);
Parameters:
name— The name of the device.
Returns: The IDevice if found, or null.
Add
Registers a device with the given name.
void Add(string name, IDevice device);
Parameters:
name— The name to assign to the device.device— The device instance to register.
GetDevices
Returns all registered devices.
IDevice[] GetDevices();
Returns: An array of all registered IDevice instances.