protected AbstractDevice(string id, ILog logger, IDataSourceFactory dataSourceFactory, ICommandSinkFactory commandSinkFactory) : this(id, logger, dataSourceFactory) { _commandSinkFactory = commandSinkFactory; _commandSinks = new List <ICommandSink>(); }
public SwitchableLight(string id, ILog logger, IDataProvider dataProvider, IDataSourceFactory dataSourceFactory, ICommandConsumer commandConsumer, ICommandSinkFactory commandSinkFactory) : base(id, logger, dataSourceFactory, commandSinkFactory) { AddDataSource(StateDataId, dataProvider); AddCommandSink(SwitchCommandId, commandConsumer); }