Skip to main content

Asset Service Runtime Composition

Registered composition

Runtime registration includes HTTP context access, scoped tenant context, DbContext, repository, unit of work, audit and timeline writers, command/query services, compatibility service, outbox store, document gateway, typed document client, optional typed workflow client, messaging abstractions, bearer authentication, authorization, endpoint discovery, OpenAPI, health checks, and the relay hosted service.

Request order adds correlation context, OpenAPI UI, authentication, authorization, tenant-error mapping, health, service information, direct routes, and compatibility routes. Authentication middleware runs, but the routes do not declare authorization requirements.

In Development, migrations and seed data run automatically unless explicitly disabled. A command-line backfill branch runs without starting the web host. Workflow registration switches between a real HTTP adapter and a null adapter. Tracing instruments inbound ASP.NET requests and outbound HTTP calls; metrics instrumentation was not registered.

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/Program.cs
  • microservices/src/shared-kernel/Extensions/ObservabilityExtensions.cs
  • microservices/src/shared-kernel/Extensions/MessagingExtensions.cs