refactor(public): in-process ITrackDataService on server prerender; HTTP on WASM
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user