We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb66cd5 commit 9c64dbaCopy full SHA for 9c64dba
1 file changed
src/Codebreaker.WinUI/App.xaml.cs
@@ -69,7 +69,7 @@ public partial class App : Application
69
services.AddScoped<AuthPageViewModel>();
70
services.AddTransient<AuthPage>();
71
72
- string apiBase = context.Configuration["ApiBase"] ?? throw new ConfigurationNotFoundException("ApiBase");
+ string apiBase = context.Configuration["ApiBase"] ?? throw new InvalidOperationException("ApiBase configuration not found");
73
services.AddHttpClient<IGameClient, GameClient>((HttpClient client) => client.BaseAddress = new(apiBase));
74
services.AddScoped<GamePageViewModel>();
75
services.AddTransient<GamePage>();
0 commit comments