refactor(backend): use single shared HTTP client with backoff

This commit is contained in:
sam 2025-03-11 16:10:55 +01:00
parent bba322bd22
commit 5d452824cd
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
9 changed files with 232 additions and 75 deletions

View file

@ -25,6 +25,7 @@ using Microsoft.EntityFrameworkCore;
namespace Foxnouns.Backend.Services.Auth;
public partial class RemoteAuthService(
HttpClient client,
Config config,
ILogger logger,
DatabaseContext db,
@ -32,7 +33,6 @@ public partial class RemoteAuthService(
)
{
private readonly ILogger _logger = logger.ForContext<RemoteAuthService>();
private readonly HttpClient _httpClient = new();
public record RemoteUser(string Id, string Username);