mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Use real backend
This commit is contained in:
1 parent
428bbd73e3
commit
1c07bef3cf
8 files changed
+43
-30
No files matched your search
@@ -22,12 +22,12 @@ public static class ContainerExtensions
|
||||
serviceCollection
|
||||
.AddHttpClient()
|
||||
.AddWorkshopClient()
|
||||
.ConfigureHttpClient(client => client.BaseAddress = new Uri("https://localhost:7281/graphql"));
|
||||
.ConfigureHttpClient(client => client.BaseAddress = new Uri(WorkshopConstants.WORKSHOP_URL + "/graphql"));
|
||||
|
||||
serviceCollection.AddSingleton<IDiscoveryCache>(r =>
|
||||
{
|
||||
IHttpClientFactory factory = r.GetRequiredService<IHttpClientFactory>();
|
||||
return new DiscoveryCache(IAuthenticationService.AUTHORITY, () => factory.CreateClient());
|
||||
return new DiscoveryCache(WorkshopConstants.AUTHORITY_URL, () => factory.CreateClient());
|
||||
});
|
||||
|
||||
container.WithDependencyInjectionAdapter(serviceCollection);
|
||||
|
||||
Reference in new issue
Block a user