Exemplo n.º 1
0
        private async Task Register(string product, string version)
        {
            string cmd = $"S,REGISTER CLIENT APP,{product},{version}";
            string response;

            Console.WriteLine($"sent: {cmd}");

            await this.WriteCommand(cmd);

            response = await admin.ReadLine();

            Console.WriteLine($"rcvd: {response}");

            reader = new Thread(new ThreadStart(AdminStreamReader));
            reader.Start();
        }
Exemplo n.º 2
0
        private async Task <bool> ExpectResponse(string response)
        {
            string got = await history.ReadLine();

            return(response == got);
        }