mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[store] other use default client factory
This commit is contained in:
@@ -12,12 +12,10 @@ public class OBoobsService : AbstractNsfwService
|
||||
private readonly HttpClient _httpClient;
|
||||
public override StoreItem StoreItem { get; } = new("boobs", "Сиськи", 60, 30);
|
||||
|
||||
public OBoobsService(AllowNsfw allowNsfw) : base(allowNsfw)
|
||||
public OBoobsService(AllowNsfw allowNsfw, IHttpClientFactory factory) : base(allowNsfw)
|
||||
{
|
||||
_httpClient = new HttpClient
|
||||
{
|
||||
BaseAddress = new Uri("http://api.oboobs.ru")
|
||||
};
|
||||
_httpClient = factory.CreateClient();
|
||||
_httpClient.BaseAddress = new Uri("http://api.oboobs.ru");
|
||||
}
|
||||
|
||||
public override async Task<RandomMedia> GetRandomMediaAsync()
|
||||
|
||||
Reference in New Issue
Block a user