コード例 #1
0
 private void ReloadProjects()
 {
     try
     {
         _projects.Nodes.Clear();
         _projects.Nodes.Add("Loading...");
         AppVeyorService.GetProjects(_url.Text, _password.Text, GetProjectsComplete, GetProjectsError);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #2
0
        static Task MainAsync(string[] args)
        {
            string appVeyorKey = null;

            //Get AppVeyor API key from first argument
            if (args.Any())
            {
                appVeyorKey = args.First();
            }

            //Or ask for AppVeyor API key
            if (string.IsNullOrWhiteSpace(appVeyorKey))
            {
                Console.WriteLine("Enter AppVeyor API key:");
                appVeyorKey = Console.ReadLine();

                if (string.IsNullOrEmpty(appVeyorKey))
                {
                    Console.WriteLine("No key, exiting");
                    return(null);
                }
            }

            //Initialize the service
            _appVeyorService = new AppVeyorService(appVeyorKey);

            var choices = new List <Func <Task> >
            {
                CreateEnvironmentGroup,
                NewDeploy
            };
            //Present menu of choices
            var menu = new TypedMenu <Func <Task> >(choices, "Choose a number", x => x.Method.Name);

            var picked = menu.Display();

            picked().Wait();


            return(Task.FromResult(string.Empty));
        }
コード例 #3
0
 public Repository(string apiToken)
 {
     _appVeyorService = new AppVeyorService(apiToken);
 }
コード例 #4
0
        private static Dictionary <string, bool?> GetAppVeyor()
        {
            var appVeyor = new AppVeyorService();

            return(appVeyor.GetBuilds(true, 24, "dev-v7", "dev-v7.6", "dev-v8"));
        }
コード例 #5
0
 public void Init()
 {
     _appVeyorService = new AppVeyorService("YOUR_ACCOUNT_API_KEY_HERE");   
 }
コード例 #6
0
 public void Init()
 {
     _appVeyorService = new AppVeyorService("YOUR_ACCOUNT_API_KEY_HERE");
 }