protected void OnTimer(object sender, ElapsedEventArgs args) { TcpClient client = listener.BeginListening(); Connection connection = new Connection(client); connection.ReadInfo(); }