Exemplo n.º 1
0
 public IotFactory(IIotRepository repository = null, int gcInterval = (10 * 60 * 1000))
 {
     //IotBase.OnIotDispose += IotBase_OnIotDispose;
     _repository    = repository;
     _dicIotClients = new Dictionary <Guid, IotClient>();
     _dicIotTypes   = new Dictionary <uint, Func <Guid, IIot> >();
     _gcTimer       = new Timer(_gcTimer_OnTimerCallback, null, 0, gcInterval);
 }
Exemplo n.º 2
0
 public LevePowerIot(Guid id, IIotRepository repository) : base(id)
 {
     _repository = repository;
 }
Exemplo n.º 3
0
 public IotService(IIotRepository repository, IIotFactory factory)
 {
     _repository = repository;
     _factory    = factory;
 }