fix: register EditModalSaveContextHolder in DeepDrftManager DI

ModelView has a required [Inject] of this type; without it navigating to /useradmin/users or /useradmin/registrations terminated the circuit. Matches the registration pattern from SkipperHaven.
This commit is contained in:
daniel-c-harvey
2026-06-19 23:10:08 -04:00
parent 0708bb7352
commit 62fe27224c
+4
View File
@@ -34,6 +34,10 @@ var contentApiUrl = builder.Configuration["Api:ContentApiUrl"]
?? throw new InvalidOperationException("Api:ContentApiUrl is required");
AuthBlocksWeb.Startup.ConfigureAuthServices(builder.Services, contentApiUrl);
// Per-circuit bridge consumed by the AuthBlocks ModelView component (Users/Registrations pages).
// ModelView has a required [Inject] of this type; without it the circuit throws on component init.
builder.Services.AddScoped<Web.Maintenance.Entities.EditModalSaveContextHolder>();
// Named HttpClient for unauthenticated Content API calls (CmsTrackService proxying WAV data
// to DeepDrftAPI's POST api/track/upload). API key added per-request by the service.
builder.Services.AddHttpClient("DeepDrft.Content", client =>