fix: Add missing DI registrations for Hangfire consumers

- Added ShadowRunCompletedConsumer registration (Program.cs:93)
- Added ApprovalQueueConsumer registration (Program.cs:94)
- Added AuditLogConsumer registration (Program.cs:95)

Fixes Hangfire job failure:
  'Unable to resolve service for ShadowRunCompletedConsumer'

Note: Authentication provider requires X-KArtSell-User and X-KArtSell-Role headers

Host restart required after this change to apply DI updates.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-08-02 18:08:37 +09:00
parent 31284927bc
commit d6e9ca4981
2 changed files with 50 additions and 0 deletions
+5
View File
@@ -90,6 +90,11 @@ builder.Services.AddScoped<KArtSell.Modules.ModelOperations.ShadowRun.ShadowRunQ
builder.Services.AddScoped<KArtSell.Host.Features.ShadowRun.InitiateShadowRunHandler>();
builder.Services.AddScoped<KArtSell.Host.Features.ShadowRun.GetShadowRunQuery>();
// Consumer Services (for downstream job processing)
builder.Services.AddScoped<KArtSell.Host.Consumers.ShadowRunCompletedConsumer>();
builder.Services.AddScoped<KArtSell.Host.Consumers.ApprovalQueueConsumer>();
builder.Services.AddScoped<KArtSell.Host.Consumers.AuditLogConsumer>();
// Recommendation Report Services
builder.Services.AddScoped<RecommendationReportGenerator>();
builder.Services.AddScoped<GenerateDailyRecommendationJob>();