/// <summary> /// Deregisters the port with the platform, thus making it closed forr business /// </summary> /// <param name="port"></param> /// <returns>The result code of deregisteration</returns> protected ResultCode DeregisterPortWithPlatform(Port port) { ResultCode resultCode = (ResultCode)platform.DeregisterPort(port, this); if (resultCode == ResultCode.Success) { logger.Log("Successfully deregistered {0}", port.ToString()); } else { logger.Log("Failed to deregister {0}. result = {1}", port.ToString(), resultCode.ToString()); } return(resultCode); }
public int DeregisterPort(HomeOS.Hub.Platform.Contracts.IPort port, HomeOS.Hub.Platform.Contracts.IModule module) { return(_view.DeregisterPort(PortAdapter.C2V(port), ModuleAdapter.C2V(module))); }