private async Task <string> DownloadCoreAsync(Uri uri, XRefArchive xa, bool isMajor)
{
XRefMap map;
map = await DownloadBySchemeAsync(uri);
if (map.Redirections?.Count > 0)
{
await RewriteRedirections(uri, xa, map);
}
if (map.References?.Count > 0 && map.HrefUpdated != true)
{
if (string.IsNullOrEmpty(map.BaseUrl))
{
UpdateHref(map, uri);
}
}
lock (_syncRoot)
{
if (isMajor)
{
return(xa.CreateMajor(map));
}
else
{
return(xa.CreateMinor(map, GetNames(uri, map)));
}
}
}