public TcpConnectionManager(IDevice dev, IConnection connection) { Connection = connection; //_tcpConnection = (ITcpConnection)Connection; var device = (Device) dev; TcpCommandHandler = new TcpCommandHandler(this,device); ((ITcpConnection)Connection).Connect(); _listenThread = new Thread(ProcessCommands); _listenThread.Start(); }
public TcpConnectionManager(IDevice dev, IConnection connection) { Connection = connection; //_tcpConnection = (ITcpConnection)Connection; var device = (Device)dev; TcpCommandHandler = new TcpCommandHandler(this, device); ((ITcpConnection)Connection).Connect(); _listenThread = new Thread(ProcessCommands); _listenThread.Start(); }