Exemple #1
0
        private async Task WaitForServerToStart()
        {
            AdminPortClient client = null;

            while (client?.ConnectionState != AdminConnectionState.Connected)
            {
                try
                {
                    client = new AdminPortClient(new ServerInfo("127.0.0.1", Port, "admin_pass"));
                    await client.Connect();
                }

                catch (Exception) { /* swallow the exception */ }
            }
        }