Skip to main content

Payroll Dependency Injection

Summary

Program.cs is the composition root for Payroll runtime services and Shared Kernel infrastructure.

Audience

Backend and frontend developers, QA and DevOps engineers, support and security engineers, and solution architects.

Reference Content

Confirmed registrations include the scoped tenant context, EF Core context, scoped outbox store, scoped calculation/output/compatibility services, hosted read-model consumer, API discovery, Swagger, and process health checks. Shared Kernel extensions register configuration validation, structured observability, broker abstractions, integration-event publication, and a scoped outbox processor.

The read-model consumer is singleton-hosted and creates scopes for persistence work. Concrete application services are scoped. No repository interfaces, MediatR handlers, external Document client, Workflow client, cache, or hosted Payroll outbox relay is registered. Configuration categories are bound by framework/Shared Kernel registration; Payroll-specific strongly typed options are not present.

Source References

  • microservices/src/payroll-service/Program.cs
  • microservices/src/shared-kernel/Extensions/MessagingExtensions.cs
  • microservices/src/shared-kernel/Extensions/ObservabilityExtensions.cs

See Also

Keywords

  • Payroll Service
  • Payroll Dependency Injection
  • Technical architecture

Revision Information

  • Status: Draft
  • Last reviewed: 2026-07-15
  • Review cycle: Quarterly