Attendance Post Service (Windows Service)
The AttendancePostService is a Windows Service that continuously processes attendance records in the background. It uses Quartz.NET for job scheduling.
Service Architecture
Scheduling Timeline
Cron Expression Breakdown
The Quartz cron expression 0/30 * 7-23 * * ? breaks down as:
| Field | Value | Meaning |
|---|---|---|
| Seconds | 0/30 | Every 30 seconds (at 0 and 30) |
| Minutes | * | Every minute |
| Hours | 7-23 | From 7:00 AM to 11:59 PM |
| Day of Month | * | Every day |
| Month | * | Every month |
| Day of Week | ? | Any day of week |
Result: The job fires approximately 1,920 times per day (16 hours × 120 triggers/hour).
Service Installation
The service is installed via ProjectInstaller.cs as a Windows Service:
// Install command
installutil AttendancePostService.exe
// Service appears as "AttendancePostService" in services.msc