How tanveer290/iot_management_system works
This is a .NET console backend for registering devices, recording and querying telemetry, and generating per-device health reports. The principal workflow runs from the console menu through service validation and repository operations to Entity Framework Core and SQL Server; health reporting combines each device with its latest telemetry. The graph preserves the documented device, telemetry, reporting, and logging capabilities. Some repository details are supported by the SOURCE INDEX rather than full excerpts, so only documented or indexed relationships are shown.
Main entry points: Program.cs Menu and workflows · HealthReportService.cs Health reports · EFCoreDbContext.cs EF Core context · DeviceService.cs Device management
Components 18
Console application
- Menu and workflows
Program.cs
Service layer
- Device management
Services/DeviceService.cs - Device service contract
Services/IDeviceService.cs - Telemetry management
Services/TelemetryService.cs - Telemetry service contract
Services/ITelemetryService.cs - Health reports
Services/HealthReportService.cs - Health report contract
Services/IHealthReportService.cs
Persistence layer
- Device persistence
Repositories/DeviceRepository.cs - Device repository contract
Interfaces/IDeviceRepository.cs - Telemetry persistence
Repositories/TelemetryRepository.cs - Telemetry repository contract
Interfaces/ITelemetryRepository.cs - EF Core context
Data/EFCoreDbContext.cs
Domain and logging
- Device model
Models/Device.cs - Telemetry model
Models/Telemetry.cs - Health report model
Models/HealthReport.cs - Logger
Logger.cs
Other components
- Operator
- SQL Server
Connections 25
- Operator → Menu and workflows: uses
README.md - Menu and workflows → Device management: dispatches
Program.cs - Menu and workflows → Telemetry management: dispatches
Program.cs - Menu and workflows → Health reports: requests reports
Program.cs - Menu and workflows → Device model: creates
Program.cs - Menu and workflows → Telemetry model: creates
Program.cs - Device management → Device repository contract: calls
Services/DeviceService.cs - Telemetry management → Telemetry repository contract: calls
Services/TelemetryService.cs - Telemetry management → Device repository contract: checks device
Services/TelemetryService.cs - Health reports → Device service contract: lists devices
Services/HealthReportService.cs - Health reports → Telemetry service contract: gets latest
Services/HealthReportService.cs - Device management → Device service contract: implements
Services/DeviceService.cs - Telemetry management → Telemetry service contract: implements
Services/TelemetryService.cs - Health reports → Health report contract: implements
Services/HealthReportService.cs - Device repository contract → Device persistence: implemented by
Repositories/DeviceRepository.cs - Telemetry repository contract → Telemetry persistence: implemented by
Repositories/TelemetryRepository.cs - Device persistence → EF Core context: uses
Repositories/DeviceRepository.cs - Telemetry persistence → EF Core context: uses
Repositories/TelemetryRepository.cs - EF Core context → Device model: maps
Data/EFCoreDbContext.cs - EF Core context → Telemetry model: maps
Data/EFCoreDbContext.cs - EF Core context → SQL Server: configures
README.md - Device management → Logger: logs
Services/DeviceService.cs - Health reports → Logger: logs
Services/HealthReportService.cs - Device persistence → Logger: logs errors
Repositories/DeviceRepository.cs - Telemetry persistence → Logger: logs errors
Repositories/TelemetryRepository.cs