How skhan7332/gbitcodechallenge20261009 works
This is a small ASP.NET Core notification-processing API. A client submits an email notification; the API validates it, rejects recent duplicates or stores it Pending, and returns an HTTP result. Separate endpoints retrieve notifications and trigger processing of due items, which are claimed in priority/FIFO order and marked Sent or Failed after provider delivery. The graph follows documented capabilities and relationships visible in the excerpts; startup dependency-injection wiring and the response DTO implementation were not sampled.
Main entry points: NotificationService.cs Notification Service · NotificationsController.cs Notifications Controller · InMemoryNotificationRepository.cs In-Memory Repository · Notification.cs Notification Record
Components 9
HTTP API
- Notifications Controller
src/NotificationApi/Controllers/NotificationsController.cs - Request and Response Contracts
src/NotificationApi/Contracts
Notification Rules
- Request Validator
src/NotificationApi/Validation/NotificationRequestValidator.cs - Notification Service
src/NotificationApi/Services/NotificationService.cs - Duplicate Fingerprint
src/NotificationApi/Services/NotificationFingerprint.cs - Notification Record
src/NotificationApi/Models/Notification.cs
Persistence
- In-Memory Repository
src/NotificationApi/Repositories/InMemoryNotificationRepository.cs
Delivery
- Simulated Email Provider
src/NotificationApi/Providers/SimulatedEmailProvider.cs
Other components
- API Client
Connections 9
- API Client → Notifications Controller: calls endpoints
README.md - Notifications Controller → Request and Response Contracts: binds and formats
src/NotificationApi/Controllers/NotificationsController.cs - Notifications Controller → Notification Service: delegates requests
src/NotificationApi/Controllers/NotificationsController.cs - Notification Service → Request Validator: validates request
src/NotificationApi/Services/NotificationService.cs - Notification Service → Duplicate Fingerprint: computes duplicate key
src/NotificationApi/Services/NotificationService.cs - Notification Service → In-Memory Repository: stores and retrieves
src/NotificationApi/Services/NotificationService.cs - In-Memory Repository → Notification Record: stores records
src/NotificationApi/Repositories/InMemoryNotificationRepository.cs - Notification Service → Notification Record: creates and updates
src/NotificationApi/Services/NotificationService.cs - Notification Service → Simulated Email Provider: dispatches delivery
src/NotificationApi/Services/NotificationService.cs