private static ChocolateyPackageVersion ConvertToPackageVersion(FeedPackage package) { var convertedPackage = new ChocolateyPackageVersion { Author = package.Authors, ChocolateyLink = new Uri(package.GalleryDetailsUrl), Id = package.Id, Title = package.Title, Description = package.Description, Version = package.Version, ReleaseNotes = package.ReleaseNotes, DownloadCount = package.DownloadCount, IconLink = string.IsNullOrEmpty(package.IconUrl) ? null : new Uri(package.IconUrl), ProjectLink = string.IsNullOrEmpty(package.ProjectUrl) ? null : new Uri(package.ProjectUrl) }; return(convertedPackage); }
public async Task Install(ChocolateyPackageVersion package) { await this.Install(package, string.Empty); }
public async Task Install(ChocolateyPackageVersion package, string arguments) { await this.Install(package, string.Empty, new CancellationToken()); }