# allegorysoft/axiom architecture

> Architecture diagram of the GitHub repository allegorysoft/axiom, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/allegorysoft/axiom
- Repository: https://github.com/allegorysoft/axiom

## Overview

Axiom is a modular .NET application framework: applications configure and initialize a host, then use framework services for cross-cutting concerns and domain infrastructure. The graph emphasizes the documented host-to-service setup and transaction workflow, with separate branches for event delivery, file/localization services, caching, and ASP.NET integrations. Edges are limited to relationships stated in the README or visible in excerpts; dashed edges indicate README-level or unverified wiring rather than inspected implementation calls.

Main entry points: [`framework/src/ef-core/Allegory.Axiom.EntityFrameworkCore/Allegory/Axiom/EntityFrameworkCore/Repositories/EfCoreRepository.cs`](https://github.com/allegorysoft/axiom/blob/main/framework/src/ef-core/Allegory.Axiom.EntityFrameworkCore/Allegory/Axiom/EntityFrameworkCore/Repositories/EfCoreRepository.cs) (EF repository), [`framework/src/aspnetcore/Allegory.Axiom.AspNetCore.Abstractions/Allegory/Axiom/AspNetCore/HostExtensions.cs`](https://github.com/allegorysoft/axiom/blob/main/framework/src/aspnetcore/Allegory.Axiom.AspNetCore.Abstractions/Allegory/Axiom/AspNetCore/HostExtensions.cs) (Host configuration), [`framework/src/modularity/Allegory.Axiom.DependencyInjection.Abstractions/Allegory/Axiom/DependencyInjection/AssemblyDependencyRegistrar.cs`](https://github.com/allegorysoft/axiom/blob/main/framework/src/modularity/Allegory.Axiom.DependencyInjection.Abstractions/Allegory/Axiom/DependencyInjection/AssemblyDependencyRegistrar.cs) (Service discovery), [`framework/src/interception/Allegory.Axiom.Interception/Allegory/Axiom/Interception/ServiceInterceptorBinder.cs`](https://github.com/allegorysoft/axiom/blob/main/framework/src/interception/Allegory.Axiom.Interception/Allegory/Axiom/Interception/ServiceInterceptorBinder.cs) (AOP interception)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["Application platform"]
  node_host["Host configuration<br/>[HostExtensions.cs]"]
  node_registration["Service discovery"]
  node_interception["AOP interception"]
end

subgraph group_transactions["Transactions and data"]
  node_uowmanager["Unit of work manager"]
  node_uow["Transaction scope<br/>[UnitOfWork.cs]"]
  node_repository["EF repository"]
  node_dbcontext["EF context provider"]
  node_mongodb["MongoDB provider"]
  node_filtering["Filter primitives<br/>[Condition.cs]"]
end

subgraph group_events["Event delivery"]
  node_entityevents["Entity event mapping"]
  node_localevents["Local event handlers"]
  node_distributedevents["Distributed event handlers"]
  node_rabbit["RabbitMQ transport"]
end

subgraph group_services["Application services"]
  node_fileproviders["Virtual file system"]
  node_localization["Localization"]
  node_cache["Caching<br/>[Cache.cs]"]
  node_redis["Redis cache adapter"]
  node_aspnetexceptions["Exception handling"]
end

node_appdev(("Application developer"))

node_appdev -.->|"configures host"| node_host
node_host -.->|"discovers services"| node_registration
node_registration -.->|"registers services"| node_interception
node_interception -.->|"wraps calls"| node_uowmanager
node_uowmanager -->|"creates scope"| node_uow
node_uow -->|"saves changes"| node_repository
node_repository -.->|"gets context"| node_dbcontext
node_repository -.->|"uses provider"| node_mongodb
node_entityevents -->|"maps event options"| node_localevents
node_distributedevents -.->|"uses transport"| node_rabbit
node_localization -.->|"reads resources"| node_fileproviders
node_cache -.->|"uses backend"| node_redis
node_repository -.->|"applies filters"| node_filtering
node_host -.->|"configures integration"| node_aspnetexceptions

click node_host "https://github.com/allegorysoft/axiom/blob/main/framework/src/aspnetcore/Allegory.Axiom.AspNetCore.Abstractions/Allegory/Axiom/AspNetCore/HostExtensions.cs"
click node_registration "https://github.com/allegorysoft/axiom/blob/main/framework/src/modularity/Allegory.Axiom.DependencyInjection.Abstractions/Allegory/Axiom/DependencyInjection/AssemblyDependencyRegistrar.cs"
click node_interception "https://github.com/allegorysoft/axiom/blob/main/framework/src/interception/Allegory.Axiom.Interception/Allegory/Axiom/Interception/ServiceInterceptorBinder.cs"
click node_uowmanager "https://github.com/allegorysoft/axiom/blob/main/framework/src/unit-of-work/Allegory.Axiom.UnitOfWork/Allegory/Axiom/UnitOfWork/UnitOfWorkManager.cs"
click node_uow "https://github.com/allegorysoft/axiom/blob/main/framework/src/unit-of-work/Allegory.Axiom.UnitOfWork/Allegory/Axiom/UnitOfWork/UnitOfWork.cs"
click node_repository "https://github.com/allegorysoft/axiom/blob/main/framework/src/ef-core/Allegory.Axiom.EntityFrameworkCore/Allegory/Axiom/EntityFrameworkCore/Repositories/EfCoreRepository.cs"
click node_dbcontext "https://github.com/allegorysoft/axiom/blob/main/framework/src/ef-core/Allegory.Axiom.EntityFrameworkCore/Allegory/Axiom/EntityFrameworkCore/DbContext/DbContextProvider.cs"
click node_entityevents "https://github.com/allegorysoft/axiom/blob/main/framework/src/ddd/Allegory.Axiom.Domain/Allegory/Axiom/Domain/Entities/Events/EntityEventManager.cs"
click node_localevents "https://github.com/allegorysoft/axiom/blob/main/framework/src/event-bus/Allegory.Axiom.EventBus/Allegory/Axiom/EventBus/Local/LocalEventHandlerManager.cs"
click node_distributedevents "https://github.com/allegorysoft/axiom/blob/main/framework/src/event-bus/Allegory.Axiom.EventBus/Allegory/Axiom/EventBus/Distributed/DistributedEventHandlerManager.cs"
click node_rabbit "https://github.com/allegorysoft/axiom/blob/main/framework/src/event-bus/Allegory.Axiom.EventBus.RabbitMQ/Allegory/Axiom/EventBus/RabbitMqDistributedEventBus.cs"
click node_fileproviders "https://github.com/allegorysoft/axiom/blob/main/framework/src/file-provider/Allegory.Axiom.FileProvider/Allegory/Axiom/FileProvider/FileProviderManager.cs"
click node_localization "https://github.com/allegorysoft/axiom/blob/main/framework/src/localization/Allegory.Axiom.Localization/Allegory/Axiom/Localization/AxiomStringLocalizer.cs"
click node_cache "https://github.com/allegorysoft/axiom/blob/main/framework/src/caching/Allegory.Axiom.Caching/Allegory/Axiom/Caching/Cache.cs"
click node_redis "https://github.com/allegorysoft/axiom/blob/main/framework/src/caching/Allegory.Axiom.Caching.Redis/Allegory/Axiom/Caching/CachingRedisPackage.cs"
click node_aspnetexceptions "https://github.com/allegorysoft/axiom/blob/main/framework/src/aspnetcore/Allegory.Axiom.AspNetCore.ExceptionHandling/Allegory/Axiom/AspNetCore/ExceptionHandling/AxiomExceptionHandler.cs"
click node_mongodb "https://github.com/allegorysoft/axiom/blob/main/framework/src/ef-core/Allegory.Axiom.EntityFrameworkCore.MongoDB/Allegory/Axiom/EntityFrameworkCore/MongoDbContextProvider.cs"
click node_filtering "https://github.com/allegorysoft/axiom/blob/main/framework/src/core/Allegory.Axiom.Filter/Allegory/Axiom/Filter/Concrete/Condition.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_host,node_registration,node_interception toneBlue
class node_uowmanager,node_uow,node_repository,node_dbcontext,node_mongodb,node_filtering toneAmber
class node_entityevents,node_localevents,node_distributedevents,node_rabbit toneMint
class node_fileproviders,node_localization,node_cache,node_redis,node_aspnetexceptions toneRose
class node_appdev toneIndigo
```

## Components

### Application platform

- [Host configuration](https://github.com/allegorysoft/axiom/blob/main/framework/src/aspnetcore/Allegory.Axiom.AspNetCore.Abstractions/Allegory/Axiom/AspNetCore/HostExtensions.cs): `framework/src/aspnetcore/Allegory.Axiom.AspNetCore.Abstractions/Allegory/Axiom/AspNetCore/HostExtensions.cs`
- [Service discovery](https://github.com/allegorysoft/axiom/blob/main/framework/src/modularity/Allegory.Axiom.DependencyInjection.Abstractions/Allegory/Axiom/DependencyInjection/AssemblyDependencyRegistrar.cs): `framework/src/modularity/Allegory.Axiom.DependencyInjection.Abstractions/Allegory/Axiom/DependencyInjection/AssemblyDependencyRegistrar.cs`
- [AOP interception](https://github.com/allegorysoft/axiom/blob/main/framework/src/interception/Allegory.Axiom.Interception/Allegory/Axiom/Interception/ServiceInterceptorBinder.cs): `framework/src/interception/Allegory.Axiom.Interception/Allegory/Axiom/Interception/ServiceInterceptorBinder.cs`

### Transactions and data

- [Unit of work manager](https://github.com/allegorysoft/axiom/blob/main/framework/src/unit-of-work/Allegory.Axiom.UnitOfWork/Allegory/Axiom/UnitOfWork/UnitOfWorkManager.cs): `framework/src/unit-of-work/Allegory.Axiom.UnitOfWork/Allegory/Axiom/UnitOfWork/UnitOfWorkManager.cs`
- [Transaction scope](https://github.com/allegorysoft/axiom/blob/main/framework/src/unit-of-work/Allegory.Axiom.UnitOfWork/Allegory/Axiom/UnitOfWork/UnitOfWork.cs): `framework/src/unit-of-work/Allegory.Axiom.UnitOfWork/Allegory/Axiom/UnitOfWork/UnitOfWork.cs`
- [EF repository](https://github.com/allegorysoft/axiom/blob/main/framework/src/ef-core/Allegory.Axiom.EntityFrameworkCore/Allegory/Axiom/EntityFrameworkCore/Repositories/EfCoreRepository.cs): `framework/src/ef-core/Allegory.Axiom.EntityFrameworkCore/Allegory/Axiom/EntityFrameworkCore/Repositories/EfCoreRepository.cs`
- [EF context provider](https://github.com/allegorysoft/axiom/blob/main/framework/src/ef-core/Allegory.Axiom.EntityFrameworkCore/Allegory/Axiom/EntityFrameworkCore/DbContext/DbContextProvider.cs): `framework/src/ef-core/Allegory.Axiom.EntityFrameworkCore/Allegory/Axiom/EntityFrameworkCore/DbContext/DbContextProvider.cs`
- [MongoDB provider](https://github.com/allegorysoft/axiom/blob/main/framework/src/ef-core/Allegory.Axiom.EntityFrameworkCore.MongoDB/Allegory/Axiom/EntityFrameworkCore/MongoDbContextProvider.cs): `framework/src/ef-core/Allegory.Axiom.EntityFrameworkCore.MongoDB/Allegory/Axiom/EntityFrameworkCore/MongoDbContextProvider.cs`
- [Filter primitives](https://github.com/allegorysoft/axiom/blob/main/framework/src/core/Allegory.Axiom.Filter/Allegory/Axiom/Filter/Concrete/Condition.cs): `framework/src/core/Allegory.Axiom.Filter/Allegory/Axiom/Filter/Concrete/Condition.cs`

### Event delivery

- [Entity event mapping](https://github.com/allegorysoft/axiom/blob/main/framework/src/ddd/Allegory.Axiom.Domain/Allegory/Axiom/Domain/Entities/Events/EntityEventManager.cs): `framework/src/ddd/Allegory.Axiom.Domain/Allegory/Axiom/Domain/Entities/Events/EntityEventManager.cs`
- [Local event handlers](https://github.com/allegorysoft/axiom/blob/main/framework/src/event-bus/Allegory.Axiom.EventBus/Allegory/Axiom/EventBus/Local/LocalEventHandlerManager.cs): `framework/src/event-bus/Allegory.Axiom.EventBus/Allegory/Axiom/EventBus/Local/LocalEventHandlerManager.cs`
- [Distributed event handlers](https://github.com/allegorysoft/axiom/blob/main/framework/src/event-bus/Allegory.Axiom.EventBus/Allegory/Axiom/EventBus/Distributed/DistributedEventHandlerManager.cs): `framework/src/event-bus/Allegory.Axiom.EventBus/Allegory/Axiom/EventBus/Distributed/DistributedEventHandlerManager.cs`
- [RabbitMQ transport](https://github.com/allegorysoft/axiom/blob/main/framework/src/event-bus/Allegory.Axiom.EventBus.RabbitMQ/Allegory/Axiom/EventBus/RabbitMqDistributedEventBus.cs): `framework/src/event-bus/Allegory.Axiom.EventBus.RabbitMQ/Allegory/Axiom/EventBus/RabbitMqDistributedEventBus.cs`

### Application services

- [Virtual file system](https://github.com/allegorysoft/axiom/blob/main/framework/src/file-provider/Allegory.Axiom.FileProvider/Allegory/Axiom/FileProvider/FileProviderManager.cs): `framework/src/file-provider/Allegory.Axiom.FileProvider/Allegory/Axiom/FileProvider/FileProviderManager.cs`
- [Localization](https://github.com/allegorysoft/axiom/blob/main/framework/src/localization/Allegory.Axiom.Localization/Allegory/Axiom/Localization/AxiomStringLocalizer.cs): `framework/src/localization/Allegory.Axiom.Localization/Allegory/Axiom/Localization/AxiomStringLocalizer.cs`
- [Caching](https://github.com/allegorysoft/axiom/blob/main/framework/src/caching/Allegory.Axiom.Caching/Allegory/Axiom/Caching/Cache.cs): `framework/src/caching/Allegory.Axiom.Caching/Allegory/Axiom/Caching/Cache.cs`
- [Redis cache adapter](https://github.com/allegorysoft/axiom/blob/main/framework/src/caching/Allegory.Axiom.Caching.Redis/Allegory/Axiom/Caching/CachingRedisPackage.cs): `framework/src/caching/Allegory.Axiom.Caching.Redis/Allegory/Axiom/Caching/CachingRedisPackage.cs`
- [Exception handling](https://github.com/allegorysoft/axiom/blob/main/framework/src/aspnetcore/Allegory.Axiom.AspNetCore.ExceptionHandling/Allegory/Axiom/AspNetCore/ExceptionHandling/AxiomExceptionHandler.cs): `framework/src/aspnetcore/Allegory.Axiom.AspNetCore.ExceptionHandling/Allegory/Axiom/AspNetCore/ExceptionHandling/AxiomExceptionHandler.cs`

### Other components

- **Application developer**

## Connections

- Application developer → Host configuration: configures host
- Host configuration → Service discovery: discovers services
- Service discovery → AOP interception: registers services
- AOP interception → Unit of work manager: wraps calls
- Unit of work manager → Transaction scope: creates scope (evidence: `framework/src/unit-of-work/Allegory.Axiom.UnitOfWork/Allegory/Axiom/UnitOfWork/UnitOfWorkManager.cs`)
- Transaction scope → EF repository: saves changes (evidence: `framework/src/ef-core/Allegory.Axiom.EntityFrameworkCore/Allegory/Axiom/EntityFrameworkCore/Repositories/EfCoreRepository.cs`)
- EF repository → EF context provider: gets context (evidence: `framework/src/ef-core/Allegory.Axiom.EntityFrameworkCore/Allegory/Axiom/EntityFrameworkCore/Repositories/EfCoreRepository.cs`)
- EF repository → MongoDB provider: uses provider
- Entity event mapping → Local event handlers: maps event options (evidence: `framework/src/ddd/Allegory.Axiom.Domain/Allegory/Axiom/Domain/Entities/Events/EntityEventManager.cs`)
- Distributed event handlers → RabbitMQ transport: uses transport
- Localization → Virtual file system: reads resources
- Caching → Redis cache adapter: uses backend
- EF repository → Filter primitives: applies filters
- Host configuration → Exception handling: configures integration
