Commit Graph
3 Commits
Author SHA1 Message Date
Arnaud Dartois 55620b0776 fix(cqrs): address code review findings
Critical fixes:
- Publish EventCreatedNotification (SignalR broadcast was broken)
- Use ValidateAsync in ValidationBehavior (async validators were skipped)

Important fixes:
- Remove dead UnitOfWorkBehavior (handlers manage saves themselves)
- Remove dead ConfigChangedNotification (controller broadcasts directly)
- Guard MappingProfile Activator.CreateInstance against missing ctor
- Add CA1711 pragma with justification
2026-07-22 20:22:34 +00:00
Arnaud Dartois 1d1ac8387e feat(cqrs): update controllers, add AutoMapper profiles, SignalR notifications, Hangfire config
- 13 controllers migrated from service DI to IMediator dispatch
- 11 AutoMapper mapping profiles (Sites, Cameras, Auth, Users, Agents, Events, Assignments, Settings, Groups, Persons, Discovery)
- SignalR notifications bridged via MediatR INotificationHandler
- Hangfire config moved from Program.cs to Infrastructure/BackgroundJobs
- 0 build errors, 0 warnings
2026-07-22 19:54:55 +00:00
Arnaud Dartois c1b3b3d3b4 feat(cqrs): migrate Events, Agents, Assignments, Discovery, Others to CQRS
- Events: CRUD commands/queries + EventCreatedNotification for SignalR
- Agents: Register (with API key gen), Heartbeat, queries
- Assignments: Assign, Failover, Release commands + queries
- Discovery: 10 handlers delegating to existing probes/services
- Groups/Persons/Settings/Audit/Stats: full CQRS for remaining domains
- Extend IApplicationDbContext with all DbSets
2026-07-22 19:48:16 +00:00