Files
Jose Conde 5e16f781b4 phase 1
2025-09-29 16:02:00 +02:00

28 lines
567 B
C#

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();
}
}
}