Exemplo n.º 1
0
        private const string ExperimentalBranchName = "dev";      // Branch name for experimental releases

        public static async Task <ApplicationBranchResponse> GetBranchInfo()
        {
            // Grab JSON Update package from the server
            var info = await XboxChaosApi.GetApplicationInfoAsync(ApplicationName);

            if (info == null || info.Result == null || info.Error != null)
            {
                return(null);
            }
            return(GetBranch(info.Result));
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var response = XboxChaosApi.GetApplicationInfoAsync("Assembly").Result;

            if (response.Error == null)
            {
                PrintApplicationInfo(response.Result);
            }
            else
            {
                PrintError(response.Error);
            }

            Console.WriteLine();
            Console.WriteLine("Press any key to close...");
            Console.ReadKey(true);
        }