How mypatoff/clubcontrol works
ClubControl is a Windows PC-locking and billing system for computer clubs, with a server/admin panel and a client on each gaming PC. Staff start and manage sessions in the admin panel; the server persists billing state and sends commands to clients, which enforce locks and display session status. The server also provides bar sales, reports, discovery, backups, and update workflows. The graph emphasizes relationships visible in excerpts, the source index, or README; unsampled implementation links are omitted where evidence is insufficient.
Main entry points: SessionService.cs Session billing · ServerConnection.cs Server connection · ClientUpdater.cs Client updater · ClubDbContext.cs Data access
Components 22
Admin operations
- Admin panel
src/ClubControl.Server/MainWindow.xaml.cs - Bar page
src/ClubControl.Server/Views/BarView.xaml.cs - Reports window
src/ClubControl.Server/Windows/ReportsWindow.xaml.cs
Server runtime
- Session billing
src/ClubControl.Server/Services/SessionService.cs - Session monitor
src/ClubControl.Server/Services/SessionMonitorService.cs - Client hub
src/ClubControl.Server/Hubs/ClubHub.cs - Bar sales
src/ClubControl.Server/Services/BarService.cs - Reports
src/ClubControl.Server/Services/ReportsService.cs - LAN discovery
src/ClubControl.Server/Services/UdpDiscoveryService.cs - Client updates
src/ClubControl.Server/Services/ClientUpdateFile.cs - Database backup
src/ClubControl.Server/Services/DatabaseBackup.cs - Data access
src/ClubControl.Server/Data/ClubDbContext.cs - Club database
src/ClubControl.Server/Data/ClubDbContext.cs
Gaming PC client
- Lock controller
src/ClubControl.Client/Services/AppController.cs - Server connection
src/ClubControl.Client/Services/ServerConnection.cs - Client updater
src/ClubControl.Client/Services/ClientUpdater.cs - Lock screens
src/ClubControl.Client/Windows/LockWindow.xaml.cs
Shared protocol
- Client commands
src/ClubControl.Shared/Dto/ClientCommand.cs - Client settings
src/ClubControl.Shared/Dto/ClientSettingsDto.cs - Update verification
src/ClubControl.Shared/Security/ClientUpdateAuth.cs - Update script
src/ClubControl.Shared/ClientUpdateScript.cs
Other components
- Club staff
Connections 20
- Club staff → Admin panel: operates
README.md - Admin panel → Session billing: manages sessions
- Session monitor → Session billing: ticks billing
src/ClubControl.Server/Services/SessionMonitorService.cs - Session billing → Data access: reads and writes
src/ClubControl.Server/Services/SessionService.cs - Session billing → Client hub: sends commands
src/ClubControl.Server/Services/SessionService.cs - Client hub → Server connection: delivers commands
- Server connection → Lock controller: updates state
src/ClubControl.Client/Services/AppController.cs - Lock controller → Lock screens: shows lock UI
- Bar page → Bar sales: records sales
- Bar sales → Data access: reads and writes
src/ClubControl.Server/Services/BarService.cs - Reports window → Reports: views reports
- Data access → Club database: persists entities
src/ClubControl.Server/Data/ClubDbContext.cs - Client updates → Client commands: stages update command
- Server connection → Client updater: routes update
- Client updater → Update verification: verifies package
src/ClubControl.Client/Services/ClientUpdater.cs - Client updater → Update script: builds swap script
src/ClubControl.Shared/ClientUpdateScript.cs - Session billing → Client commands: builds client payloads
src/ClubControl.Server/Services/SessionService.cs - Client commands → Client settings: carries settings
src/ClubControl.Shared/Dto/ClientCommand.cs - LAN discovery → Server connection: finds server
- Database backup → Club database: backs up