protected async Task <LibraryLicense> ResolveUrlLicenseAsync(LibraryId id, string url, string subject, CancellationToken token) { var license = new LibraryLicense { Subject = subject, HRef = url }; var info = await LicenseResolver.ResolveByUrlAsync(url, token); license.Code = info?.Code; if (info?.FileContent != null) { await Storage.WriteLibraryFileAsync(id, subject + "-" + info.FileName, info.FileContent, token); } return(license); }
public GeneralInfoTableSource(LocalPackageCache packageCache, HttpDataProvider dataProvider, LicenseResolver licenseResolver) { this.packageCache = packageCache; this.dataProvider = dataProvider; this.licenseResolver = licenseResolver; }