public void Remove(ITerminal terminal) { if (terminal == null) { return; } var port = GetPort(terminal); if (port == null) { return; } var connection = GetLastConnectionInfo(terminal.PhoneNumber); InterruptConnection(connection); UnmapPort(port); port.State = PortState.Off; port.ClearEvents(); terminal.ClearEvents(); _terminals.Remove(terminal); }
protected void UnMapTerminalFromPort(ITerminal terminal, IPort port) { this.m_portMapping.Remove(terminal.PhoneNumber); terminal.ClearEvents(); port.ClearEvents(); }
protected void UnMapTerminalFromPort(ITerminal terminal, IPort port) { _portMapping.Remove(terminal.Number); terminal.ClearEvents(); port.ClearEvents(); }
public void Remove(ITerminal terminal) { if (terminal == null) return; var port = GetPort(terminal); if (port == null) return; var connection = GetLastConnectionInfo(terminal.PhoneNumber); InterruptConnection(connection); UnmapPort(port); port.State = PortState.Off; port.ClearEvents(); terminal.ClearEvents(); _terminals.Remove(terminal); }