public void ParseEntry(string inputString) { if (string.IsNullOrEmpty(inputString) || string.IsNullOrWhiteSpace(inputString)) { Log("Empty input."); } string[] cols = inputString.Split('\t'); if (cols.Length != 2) { Log("Invalid input :" + inputString); return; } try { bool response = mainInstance.Accept(new Request() { VehicleSize = cols[0], Operation = cols[1] }); if (response) { Log("Vehicle " + cols[0] + " " + cols[1] + " successful at " + GateNo); } else { Log("Vehicle " + cols[0] + " " + cols[1] + " unsuccessful at " + GateNo); } } catch (Exception ex) { Log(ex.Message); } }