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:
@@ -10,12 +10,10 @@ public class AnimBoobsService : AbstractNsfwService
|
||||
private readonly HttpClient _httpClient;
|
||||
public override StoreItem StoreItem { get; } = new("anim_boobs", "Сиськи.gif", 120, 40);
|
||||
|
||||
public AnimBoobsService(AllowNsfw allowNsfw) : base(allowNsfw)
|
||||
public AnimBoobsService(AllowNsfw allowNsfw, IHttpClientFactory factory) : base(allowNsfw)
|
||||
{
|
||||
_httpClient = new HttpClient
|
||||
{
|
||||
BaseAddress = new Uri("https://westdev.me/_boobs/")
|
||||
};
|
||||
_httpClient = factory.CreateClient();
|
||||
_httpClient.BaseAddress = new Uri("https://westdev.me/_boobs/");
|
||||
}
|
||||
|
||||
public override async Task<RandomMedia> GetRandomMediaAsync()
|
||||
|
||||
Reference in New Issue
Block a user