Esempio n. 1
0
        public MiHomeManager(
            IMiCommunicationFactory communicationFactory,
            IDevicesKeeper devicesKeeper,
            ITokenKeeper tokenKeeper,
            IDevicesMap devicesMap,
            IKeyGeneratorFactory keyGeneratorFactory)
        {
            _devicesKeeper = devicesKeeper;
            _tokenKeeper   = tokenKeeper;
            _devicesMap    = devicesMap;
            var keyGenerator = keyGeneratorFactory.Build(_devicesMap, _tokenKeeper);

            _communication = communicationFactory.Build(CommandListener, keyGenerator);
        }
Esempio n. 2
0
 public KeyGenerator(IDevicesMap map, ITokenKeeper tokenKeeper, IGatewayPasswordKeeper passwordKeeper)
 {
     _map            = map;
     _tokenKeeper    = tokenKeeper;
     _passwordKeeper = passwordKeeper;
 }
Esempio n. 3
0
 public IKeyGenerator Build(IDevicesMap map, ITokenKeeper tokenKeeper)
 {
     return(new KeyGenerator(map, tokenKeeper, _passwordKeeper));
 }