예제 #1
0
        public static async Task GetComputers()
        {
            var computerManager = new ComputerManager(_webManager);
            var computers       = await computerManager.GetComputersAsync();

            var firstComputer = computers.Data.FirstOrDefault();

            if (firstComputer == null)
            {
                return;
            }
            var computerParams = await computerManager.GetSelectedComputerAsync(firstComputer.Subdomain);

            var getSelection =
                await computerManager.SendQueryToComputerAsync
                    (firstComputer.Subdomain, "Dongs REO Speedwagon");

            Console.WriteLine(getSelection.Data.Args.Query);
        }