Beispiel #1
0
        public async Task <LicenseInfo> DownloadByUrlAsync(string url, CancellationToken token)
        {
            url.AssertNotNull(nameof(url));

            var license = await GitHubApi.LoadLicenseAsync(url, Configuration.PersonalAccessToken, token);

            if (license == null)
            {
                return(null);
            }

            return(CreateLicenseInfo(license.Value));
        }