[core] client factory for SomeRandomApi

This commit is contained in:
Andriy
2023-07-28 23:13:56 +03:00
parent c19696b360
commit 42509dcacd
11 changed files with 62 additions and 18 deletions
+5
View File
@@ -39,6 +39,11 @@ public class ContentStore : Module
);
});
services.AddHttpClient<ISomeRandomApi, SomeRandomApi>(c =>
{
c.BaseAddress = new Uri("https://some-random-api.com");
});
foreach (var serviceType in MediaServiceTypes)
{