How bodunch/server-client-bacgroundapp- works
This repository implements a Windows PC-monitoring system: a background client collects static and changing machine data, sends it to a local HTTP server, and an admin panel browses clients and their reports. The server accepts reports, queues database work, and serves report endpoints; the panel polls those endpoints and presents static details or live-updating dynamic data. The README documents POST/JSON transfer on port 5000. Some collection, sending, and response modules are represented by their exact enclosing directories because their implementation was not excerpted.
Main entry points: ReportController.cs Report API · MainViewModel.cs Admin view model · AppDbContext.cs EF data context · Worker.cs Client worker
Components 19
Background client
- Client worker
Client/Client/Worker.cs - PC data collection
Client/Client/Modules/PCInfo - Connection capture
Client/Client/Modules/PCInfo/ConnectionsInfo.cs - Static data senders
Client/Client/Modules/ServerSend/StaticData - Dynamic data senders
Client/Client/Modules/ServerSend/DynamicData
Reporting server
- Report API
Server/Server/Controllers/ReportController.cs - Client registry helper
Server/Server/Data/ClientHelper.cs - Database work queue
Server/Server/Data/DbQueue/DatabaseQueueService.cs - Queue worker
Server/Server/Data/DbQueue/DatabaseQueueWorker.cs
Persistence
- EF data context
Server/Server/Data/AppDbContext.cs - Report entities
Server/Server/Data/Entities - Client records
Server/Server/Data/Entities/ClientsEntity.cs
Admin panel
- Admin window
AdminPanel/AdminPanel/MainWindow.xaml.cs - Admin view model
AdminPanel/AdminPanel/ViewModel/MainViewModel.cs - Static report models
AdminPanel/AdminPanel/Model - Dynamic report views
AdminPanel/AdminPanel/ViewModel/DnmDataFromServer - Report display state
AdminPanel/AdminPanel/ViewModel/StaticInfoTextBox.cs
Other components
- Administrator
- Local HTTP service
Connections 21
- Client worker → Static data senders: invokes initial sends
Client/Client/Worker.cs - Client worker → Dynamic data senders: invokes periodic sends
Client/Client/Worker.cs - Client worker → PC data collection: uses collection modules
- Dynamic data senders → Connection capture: sends captured connections
Client/Client/Modules/ServerSend/DynamicData/SendConnectionInfoToServer.cs - Static data senders → Report API: POSTs JSON reports
- Dynamic data senders → Report API: POSTs JSON reports
- Local HTTP service → Report API: accepts requests
- Report API → Database work queue: queues database work
Server/Server/Controllers/ReportController.cs - Report API → Client registry helper: resolves client identity
Server/Server/Controllers/ReportController.cs - Report API → EF data context: queries and saves
Server/Server/Controllers/ReportController.cs - Queue worker → Database work queue: reads queued work
Server/Server/Data/DbQueue/DatabaseQueueWorker.cs - Queue worker → EF data context: executes work
Server/Server/Data/DbQueue/DatabaseQueueWorker.cs - EF data context → Report entities: maps report tables
Server/Server/Data/AppDbContext.cs - EF data context → Client records: maps client records
Server/Server/Data/AppDbContext.cs - Administrator → Admin window: uses panel
- Admin window → Admin view model: sets view model
AdminPanel/AdminPanel/MainWindow.xaml.cs - Admin view model → Local HTTP service: polls and requests reports
AdminPanel/AdminPanel/ViewModel/MainViewModel.cs - Admin view model → Static report models: deserializes static data
AdminPanel/AdminPanel/ViewModel/MainViewModel.cs - Admin view model → Dynamic report views: dispatches data requests
AdminPanel/AdminPanel/ViewModel/MainViewModel.cs - Dynamic report views → Local HTTP service: fetches dynamic reports
AdminPanel/AdminPanel/ViewModel/DnmDataFromServer/DnmCpuInfoResp.cs - Dynamic report views → Report display state: updates report display
AdminPanel/AdminPanel/ViewModel/DnmDataFromServer/DnmCpuInfoResp.cs