This commit is contained in:
Jose Conde
2025-09-29 16:02:00 +02:00
parent dc57da8136
commit 5e16f781b4
74 changed files with 1621 additions and 1856 deletions

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ModVersionChecker.repository.api
{
public class ApiBase: IDisposable
{
private readonly HttpClient _httpClient = new HttpClient();
public ApiBase()
{
_httpClient.Timeout = TimeSpan.FromSeconds(30);
_httpClient.DefaultRequestHeaders.Add("User-Agent", "ModVersionChecker");
}
public void Dispose()
{
_httpClient?.Dispose();
}
}
}