Ejemplo n.º 1
0
 public sealed override void StopWithHooks()
 {
     platform.UpdateState(this, new HomeOS.Hub.Common.ModuleState(ModuleState.SimpleState.EnterStop, DateTime.Now));
     Stop();
     platform.UpdateState(this, new HomeOS.Hub.Common.ModuleState(ModuleState.SimpleState.ExitStop, DateTime.Now));
     //***
     platform.CancelAllSubscriptions(this, ControlPort, ControlPortCapability);
     //***
 }
Ejemplo n.º 2
0
 public void CancelAllSubscriptions(HomeOS.Hub.Platform.Contracts.IModule module, HomeOS.Hub.Platform.Contracts.IPort controlPort, HomeOS.Hub.Platform.Contracts.ICapability controlportcap)
 {
     _view.CancelAllSubscriptions(ModuleAdapter.C2V(module), PortAdapter.C2V(controlPort), CapabilityAdapter.C2V(controlportcap));
 }