refactor(public): in-process ITrackDataService on server prerender; HTTP on WASM

This commit is contained in:
Daniel Harvey
2026-05-20 16:49:43 -04:00
parent 35099a54e5
commit e8072f8b17
7 changed files with 104 additions and 10 deletions
+4 -1
View File
@@ -14,8 +14,11 @@ public static class Startup
services.AddScoped<DarkModeSettings>();
services.AddScoped<DarkModeCookieService>();
// Track Client
// Track Client. The HTTP-backed ITrackDataService registration here is the WASM
// default; the server host overrides it with an in-process implementation after
// this method runs, so SSR prerender skips the loopback hop.
services.AddScoped<TrackClient>();
services.AddScoped<ITrackDataService, TrackClientDataService>();
services.AddScoped<TracksViewModel>();
}