Пример #1
0
 public async Task<AppVeyorServiceResponse<HttpStatusCode>> CancelBuild(Project project)
 {
     AppVeyorServiceResponse<HttpStatusCode> appVeyorServiceResponse;
     var buildVerionString = project.ToBuildVerionString();
     if (!string.IsNullOrEmpty(buildVerionString))
     {
         appVeyorServiceResponse = await _appVeyorService.ProjectApi.CancelBuild(project.AccountName, project.Slug, buildVerionString);
     }
     else
     {
         appVeyorServiceResponse = new AppVeyorServiceResponse<HttpStatusCode>();
         appVeyorServiceResponse.Exception = new AppVeyorException("Unable to parse version from project.");
         appVeyorServiceResponse.HasError = true;
     }
     return appVeyorServiceResponse;
 }
Пример #2
0
 public async Task<AppVeyorServiceResponse<Build>> StartBuild(Project project)
 {
     var appVeyorServiceResponse = await _appVeyorService.ProjectApi.StartBuild(project.AccountName, project.Slug, project.RepositoryBranch);
     return appVeyorServiceResponse;
 }