[store] other use default client factory

This commit is contained in:
Andriy
2023-07-28 23:14:36 +03:00
parent 42509dcacd
commit 2a37b27bb4
6 changed files with 15 additions and 19 deletions
@@ -5,5 +5,6 @@ namespace West.TelegramBot.ContentStore.Service;
public class CatApiService : AnimalAsAService
{
public override StoreItem StoreItem { get; } = new("cat", "Котэ", 40, 10);
public CatApiService() : base(new Uri("https://api.thecatapi.com/v1/")) {}
public CatApiService(IHttpClientFactory factory) :
base(factory, new Uri("https://api.thecatapi.com/v1/")) {}
}