Exemple #1
0
        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();
 }
Exemple #3
0
 protected void UnMapTerminalFromPort(ITerminal terminal, IPort port)
 {
     _portMapping.Remove(terminal.Number);
     terminal.ClearEvents();
     port.ClearEvents();
 }
Exemple #4
0
        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);
        }