Skip to content

Commit

Permalink
#34: Update upstream CDN URLs because Edgio went bankrupt [changing B…
Browse files Browse the repository at this point in the history
…lob Storage URL to CDN URL is not required, but improves performance]
  • Loading branch information
Aldaviva authored Dec 30, 2024
1 parent 7c79dde commit 91193e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions RaspberryPiDotnetRepository/DotnetUpstream/SdkDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public interface SdkDownloader {
public class SdkDownloaderImpl(HttpClient httpClient, IOptions<Options> options, ILogger<SdkDownloaderImpl> logger): SdkDownloader {

// Found on https://github.com/dotnet/core#release-information
private static readonly Uri DOTNET_RELEASE_INDEX = new("https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json");
// #34: Use the new Azure Traffic Manager domain name instead of the Azure Blob Storage domain for performance (even though this file itself currently points to uncached Blob Storage URLs), as recommended by https://devblogs.microsoft.com/dotnet/critical-dotnet-install-links-are-changing/#call-to-action
private static readonly Uri DOTNET_RELEASE_INDEX = new("https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json");

private readonly CpuArchitecture[] allCpuArchitectures = Enum.GetValues<CpuArchitecture>();

Expand Down Expand Up @@ -105,4 +106,4 @@ private static bool isStableVersion(JsonNode? release) {
return !patchVersionNumber.Contains("-preview.") && !patchVersionNumber.Contains("-rc.");
}

}
}

0 comments on commit 91193e3

Please sign in to comment.