public async Task <InvokeResult> PublishSolutionAsync(SolutionVersion solutionVersion, EntityHeader org, EntityHeader user) { var solutionForSecurityCheck = await _deploymentRepo.GetSolutionAsync(solutionVersion.SolutionId); await AuthorizeAsync(solutionForSecurityCheck, AuthorizeActions.Read, user, org, "publish"); var fullSolutionLoadResult = await LoadFullSolutionAsync(solutionVersion.SolutionId, org, user); if (!fullSolutionLoadResult.Successful) { return(fullSolutionLoadResult.ToInvokeResult()); } var solution = fullSolutionLoadResult.Result; var validationResult = ValidateSolution(solution); if (!validationResult.Successful) { return(validationResult.ToInvokeResult()); } await _solutionVersionRepo.PublishSolutionVersionAsync(solutionVersion, solution); return(InvokeResult.Success); }
private void WriteSolutionHeader(SolutionVersion version) { _writer.WriteLine("Microsoft Visual Studio Solution File, Format Version {0}.00", (int)version); _writer.WriteLine("# LiteDevelop v{0}", System.Windows.Forms.Application.ProductVersion); }
private void WriteSolutionHeader(SolutionVersion version) { _writer.WriteLine("Microsoft Visual Studio Solution File, Format Version {0}.00", (int)version); _writer.WriteLine("# LiteDevelop v{0}", System.Windows.Forms.Application.ProductVersion); }
public Task <InvokeResult> PublishSolutionAsync([FromBody] SolutionVersion solutionVersion) { return(_solutionManager.PublishSolutionAsync(solutionVersion, OrgEntityHeader, UserEntityHeader)); }