Пример #1
0
 protected AbstractDevice(string id, ILog logger, IDataSourceFactory dataSourceFactory, ICommandSinkFactory commandSinkFactory)
     : this(id, logger, dataSourceFactory)
 {
     _commandSinkFactory = commandSinkFactory;
     _commandSinks       = new List <ICommandSink>();
 }
Пример #2
0
 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);
 }