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); } }
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)); }
public Repository(string apiToken) { _appVeyorService = new AppVeyorService(apiToken); }
private static Dictionary <string, bool?> GetAppVeyor() { var appVeyor = new AppVeyorService(); return(appVeyor.GetBuilds(true, 24, "dev-v7", "dev-v7.6", "dev-v8")); }
public void Init() { _appVeyorService = new AppVeyorService("YOUR_ACCOUNT_API_KEY_HERE"); }