Esempio n. 1
0
 //***
 public void UpdateState(HomeOS.Hub.Platform.Contracts.IModule module, HomeOS.Hub.Platform.Contracts.IModuleState state)
 {
     _view.UpdateState(ModuleAdapter.C2V(module), ModuleStateAdapter.C2V(state));
 }
Esempio n. 2
0
 //*** These methods hook around the 4 abstract method inherting modules implement (start,stop, portregistered, portderegistered)
 public sealed override void StartWithHooks()
 {
     platform.UpdateState(this, new HomeOS.Hub.Common.ModuleState(ModuleState.SimpleState.EnterStart, DateTime.Now));
     Start();
     platform.UpdateState(this, new HomeOS.Hub.Common.ModuleState(ModuleState.SimpleState.ExitStart, DateTime.Now));
 }