Feat: Restuctured GraphQL Queries and added Backend call service into client. And regerated GraphQL client classes

This commit is contained in:
Mikhail Shabanov committed 2021-05-15 17:36:35 +02:00
1 parent d3d25fa62d
commit 4b5b12e87d
53 files changed
+1868 -1193

No files matched your search

+10
View File
@@ -36,6 +36,16 @@ namespace WotBlitzStatisticsPro.Blazor
.AddWotBlitzStatisticsProClient()
.ConfigureHttpClient(client => client.BaseAddress = new Uri($"{builder.HostEnvironment.BaseAddress}graphql/"));
// ToDo: Asp Net hosting environment variables don't work here. I don't know why
//var useMock = Environment.GetEnvironmentVariable("USE_GRAPH_QL_MOCK");
//if (useMock != null && useMock == "true")
//{
builder.Services.AddTransient<IGraphQlBackendService, GraphQlBackendMockService>();
//}
//else
//{
// builder.Services.AddTransient<IGraphQlBackendService, GraphQlBackendService>();
//}
var host = builder.Build();
// Reading Current Culture from LocalStorage