Attendance Project Structure
Summary
The service is a single .NET web project with domain-oriented folders and shared project references.
Audience
Developers, QA engineers, DevOps engineers, and solution architects.
Reference Content
| Path | Responsibility |
|---|---|
Api/ | Minimal API presentation, direct and compatibility surfaces, and response translation. |
Application/Common/ | Tenant, audit, timeline, unit-of-work, resolver ports, result model, and lightweight CQRS conventions. |
Application/Services/ | Attendance commands, queries, punch/reopen workflows, profile/snapshot services, and shift-policy orchestration. |
Application/TimeOffice/ and Application/Compatibility/ | Time Office DTO mapping and compatibility orchestration. |
Domain/Attendance/ | Attendance aggregates, supporting models, calculator, statuses, and domain events. |
Domain/TimeOffice/ | Shift, weekly-off, policy, rule, and assignment models. |
Domain/Common/ and Domain/Repositories.cs | Domain primitives and persistence ports. |
Infrastructure/ | EF Core context and adapters, tenant context, outbox, Payroll lock client, migration and development support. |
Backfill/ | Read-only source extraction, target upsert, resume, audit, and parity validation for Time Office cutover. |
Properties/ | Local launch metadata; not a production runbook. |
Program.cs | Web/CLI entry point and composition root. |
The project references Shared Kernel and Contracts. There is no separate Attendance test project or dedicated configuration/options folder; most service configuration is composed in Program.cs, with shared options supplied by Shared Kernel.
Source References
microservices/src/attendance-service/Program.csmicroservices/src/attendance-service/attendance-service.csprojmicroservices/src/attendance-service/Api/Endpoints.csmicroservices/src/attendance-service/Application/Common/Abstractions.csmicroservices/src/attendance-service/Domain/Repositories.csmicroservices/src/attendance-service/Infrastructure/Persistence.csmicroservices/src/attendance-service/Backfill/ShiftPolicyBackfillCli.csmicroservices/src/attendance-service/Properties/launchSettings.json
Related Articles
See Also
Keywords
- Attendance Service
- Attendance Project Structure
Revision Information
- Status: Draft
- Last reviewed: 2026-07-15
- Review cycle: Quarterly