static void Main(string[] args) { ServerConnection serverConnection = new ServerConnection(); serverConnection.Connect(); serverConnection.StartSession(); serverConnection.CloseConnection(); }