feat: Strawberry Shake first query

This commit is contained in:
Mikhail Shabanov committed 2021-05-14 11:37:45 +02:00
1 parent 235a717f51
commit 798a9d0e43
7 files changed
+1095 -9

No files matched your search

+7
View File
@@ -30,6 +30,13 @@ namespace WotBlitzStatisticsPro.Blazor
builder.Services.AddSingleton<NavigationMessagesInterceptor>();
builder.Services.AddScoped<ILocalStorageService, LocalStorageService>();
// ToDo: Find out URL
// StrawberryShake GraphQL Client
builder.Services
.AddWotBlitzStatisticsProClient()
.ConfigureHttpClient(client => client.BaseAddress = new Uri($"https://localhost:5001/graphql/"));
var host = builder.Build();
// Reading Current Culture from LocalStorage
var localStorageService = host.Services.GetRequiredService<ILocalStorageService>();