How mohamed-diaa-24/petrovision works
PetroVision 360 is a petroleum-facility safety intelligence platform. Staff and managers use authenticated API workflows to manage cameras and review camera requests, respond to alerts and incidents, and coordinate through announcements and handovers; an AI service submits detections. Business services implement these operations over EF Core persistence, while JWT session validation and SignalR support secure access and live events. The README documents areas whose service implementations were not sampled; those are retained as product capabilities, with uncertain internal links omitted. The source index and excerpts support the specific service and persistence links shown.
Main entry points: PetroVisionDbContext.cs Application data context · AuthService.cs Authentication service · Program.cs API runtime · AuthController.cs Authentication API
Components 22
Access and Identity
- Authentication API
src/PetroVision.API/Controllers/AuthController.cs - Authentication service
src/PetroVision.BLL/Services/AuthService.cs - Signup review API
src/PetroVision.API/Controllers/SignupRequestsController.cs - Signup review service
src/PetroVision.BLL/Services/SignupReviewService.cs - Agent management API
src/PetroVision.API/Controllers/AgentsController.cs
Safety Operations
- Camera management API
src/PetroVision.API/Controllers/CamerasController.cs - Camera service
src/PetroVision.BLL/Services/CameraService.cs - Camera requests API
src/PetroVision.API/Controllers/CameraRequestsController.cs - Camera request service
src/PetroVision.BLL/Services/CameraRequestService.cs - Detection intake API
src/PetroVision.API/Controllers/DetectionsController.cs - Alert response API
src/PetroVision.API/Controllers/AlertsController.cs - Incident management API
src/PetroVision.API/Controllers/IncidentsController.cs - Dashboards and analytics
src/PetroVision.API/Controllers
Team Coordination
- Announcements and handovers
src/PetroVision.API/Controllers - Activity and audit views
src/PetroVision.API/Controllers/ActivityController.cs - Notes service
src/PetroVision.BLL/Services/NotesService.cs
Runtime and Persistence
- Real-time events
src/PetroVision.API/Hubs/EventsHub.cs - API runtime
src/PetroVision.API/Program.cs - Application data context
src/PetroVision.DAL/Context/PetroVisionDbContext.cs
Other components
- Staff and managers
- AI service
- SQL Server
Connections 25
- Staff and managers → Authentication API: signs in
- Authentication API → Authentication service: delegates
src/PetroVision.API/Controllers/AuthController.cs - Authentication service → Application data context: reads and writes
src/PetroVision.BLL/Services/AuthService.cs - Authentication service → Staff and managers: sends reset email
src/PetroVision.BLL/Services/AuthService.cs - Staff and managers → Signup review API: requests review
- Signup review API → Signup review service: delegates
- Signup review service → Application data context: reads and writes
src/PetroVision.BLL/Services/SignupReviewService.cs - Staff and managers → Agent management API: manages agents
- Agent management API → Application data context: routes operations
- Staff and managers → Camera management API: manages cameras
- Camera management API → Camera service: delegates
src/PetroVision.API/Controllers/CamerasController.cs - Camera service → Application data context: reads and writes
src/PetroVision.BLL/Services/CameraService.cs - Staff and managers → Camera requests API: reviews requests
- Camera requests API → Camera request service: delegates
src/PetroVision.API/Controllers/CameraRequestsController.cs - Camera request service → Application data context: reads and writes
src/PetroVision.BLL/Services/CameraRequestService.cs - AI service → Detection intake API: submits detections
- Staff and managers → Alert response API: responds to alerts
- Staff and managers → Incident management API: manages incidents
- Staff and managers → Dashboards and analytics: views dashboards
- Staff and managers → Announcements and handovers: coordinates shifts
- Announcements and handovers → Notes service: uses notes service
- Staff and managers → Activity and audit views: views activity
- API runtime → Real-time events: maps hub
src/PetroVision.API/Program.cs - API runtime → Application data context: configures data access
- Application data context → SQL Server: persists data