display package versions

This commit is contained in:
Matt Parker
2025-11-01 23:20:42 +10:00
parent a86da7fe46
commit 8ebb02cb59
3 changed files with 57 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ public class NugetPackageIconCacheService(IHttpClientFactory httpClientFactory)
{
private readonly IHttpClientFactory _httpClientFactory = httpClientFactory;
// TODO: Add an in memory cache
public async Task<(byte[]? bytes, NugetPackageIconFormat?)> GetNugetPackageIcon(string packageId, Uri? iconUrl)
{
var appdataFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);