Ejemplo n.º 1
0
        static async Task ListVirtualMachineSummaries()
        {
            var    req     = new PlayFab.MultiplayerModels.ListVirtualMachineSummariesRequest();
            string buildID = ReadBuildIDFromInput();
            var    regions = await GetRegions(buildID);

            req.Region  = ReadRegionFromInput(regions);
            req.BuildId = buildID;
            var res = await PlayFabMultiplayerAPI.ListVirtualMachineSummariesAsync(req);

            if (res.Error != null)
            {
                Console.WriteLine(res.Error.ErrorMessage);
            }
            else
            {
                PrettyPrintJson(res.Result);
            }
        }