C# Class HomeAutomation.Core.ControllerRegistry

Maintains a registry of the controllers registered to the system.
Mostrar archivo Open project: moszinet/HomeAutomation

Public Methods

Method Description
GetControllers ( ) : IController[]

Returns the currently registered controller list, which can be used to loop through the list, as it will never change, but rather a new instance will be returned on change.

RegisterController ( IController controller ) : void

Registers a controller to the system.

Method Details

GetControllers() public method

Returns the currently registered controller list, which can be used to loop through the list, as it will never change, but rather a new instance will be returned on change.
public GetControllers ( ) : IController[]
return IController[]

RegisterController() public method

Registers a controller to the system.
public RegisterController ( IController controller ) : void
controller IController
return void