Skip to main content

Asset Service Layer Dependencies

Dependency model

API endpoint delegates call Application services and query DbContext directly only for foundation health/audit/timeline/outbox projections. Application commands and queries depend on domain types and declared ports. Domain defines the aggregate, value objects, events, and repository interface without infrastructure references. Infrastructure implements persistence, tenant context, audit/timeline, outbox store, workflow, and document adapters.

The web project references Shared Kernel and Contracts at compile time. Notification is not referenced directly by Asset Service; it consumes shared lifecycle contracts through messaging. Gateway, Workflow, and Document are runtime boundaries. Folder separation does not prevent compile-time coupling within the single assembly.

Requires confirmation

Production ownership, authorization governance, operational policy, and future architecture require confirmation where the source does not enforce them.

Source References

  • microservices/src/asset-service/asset-service.csproj
  • microservices/src/asset-service/Program.cs
  • microservices/src/asset-service/Infrastructure/Persistence.cs