Use real backend

This commit is contained in:
Robert committed 2023-07-14 09:21:09 +02:00
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);