private void InitialisedMixedConnectionMode() { try { // Construct TerminalInformation instance TerminalInformation terminalInformation = new TerminalInformation.Builder() .SerialNumber("803-678-919") .TerminalConnection(new TcpTerminalConnection.Builder() .SocketAddress(new IPEndPoint(IPAddress.Parse("192.168.1.241"), 9600)) .ConnectionInitiationType(ConnectionInitiationType.EcrInitiated) .ConnectionManagementType(ConnectionManagementType.ConnectionPerSession ) .Build()) .Build(); // Create terminal vim.CreateTerminal(terminalInformation); } catch (InvalidOperationException e) { // Invalid VIM state log.Error($"Invalid VIM state {e.Message}"); } catch (ArgumentException e) { // Invalid parameters provided log.Error($"Invalid parameters provided {e.Message}"); } }