À propos
Open source .NET application framework for building modular applications. It handles the foundational infrastructure so you can focus on application logic instead of building common infrastructure yourself.
Développement web et applicatifProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original
Axiom is an open-source .NET framework for building modular business applications.
It brings together dependency injection, modular composition, data access, transactions, caching, eventing, multi-tenancy, localization, and more into one coherent foundation.
Explore the documentation
[!WARNING] Axiom is in early alpha. APIs may change without notice, and it is not yet recommended for production use.
Why Axiom
Building business applications shouldn't mean rebuilding the same infrastructure every time.
Most applications end up implementing the same foundational concerns: service registration, module boundaries, transaction handling, cache invalidation, integration events, localization, and tenancy.
Axiom provides these capabilities through a consistent composition model and lifecycle, while staying out of your domain code.
- Compose, don't configure. Modules are discovered from the dependency graph, and services register themselves through conventions or attributes.
- One transaction boundary. A single unit of work coordinates services, repositories, local events, cache invalidation, and distributed events.
- Adopt incrementally. Every capability ships as its own NuGet package and works with the parts you already have.
- Built on .NET. Uses the hosting model, ASP.NET Core, and EF Core you already know, instead of replacing them.
Architecture at a glance
Axiom sits between your application modules and the .NET platform, providing a shared foundation for cross-cutting infrastructure without imposing application-specific abstractions on your domain.
One lifecycle for every operation
Whether an operation starts from an HTTP request, a distributed event, or an explicit [UnitOfWork] boundary, Axiom coordinates it through a single transactional lifecycle:
- Save changes.
- Dispatch local events.
- Commit the transaction.
- Invalidate caches.
- Execute after-commit hooks.
- Publish distributed events.
Failures before commit roll back the transaction. Side effects that must not run on failure are deferred until the data is durable.
Nested service calls automatically join the ambient unit of work, allowing the same lifecycle to follow an operation across module and service boundaries.
What's included
| Capability | What you get |
|---|---|
| Modularity | Auto-discovered application packages, ordered lifecycle hooks, and runtime plugins. |
| Dependency injection | Convention-based registration with marker interfaces or [Dependency] attributes. |
| Unit of work | Ambient, nestable transactions with save, commit, rollback, and after-commit phases. |
| Data & EF Core | Repositories, connection strings, filtering, and EF Core relational/MongoDB integrations. |
| Caching | Cache abstraction over HybridCache, with optional FusionCache and Redis providers and after-commit invalidation. |
| Eventing | Local and distributed events with outbox/inbox support and a RabbitMQ transport. |
| Interception | Castle DynamicProxy pipeline for cross-cutting concerns such as logging, caching, authorization, and transactions. |
| Multi-tenancy | Ambient tenant context, resolution pipeline, tenant stores, and principal access checks. |
| Localization | JSON resources, culture fallback, file providers, and localizable exception codes. |
| Security & settings | Current principal access, string encryption, and global, tenant, and user setting values. |
| File providers | One virtual file system over embedded, physical, and custom providers. |
| Distributed locking | In-process and Madelson-backed locks for multi-instance workloads. |
| ASP.NET Core | Endpoints, middleware, MVC, exception handling, and unit-of-work integration. |
| Observability | OpenTelemetry tracing for unit of work and eventing. |
Packages follow the Allegory.Axiom.* naming convention. Install only what you need.
Browse all available packages on NuGet.
Getting started
Requires the .NET 11 SDK.
Install the hosting packages:
dotnet add package Allegory.Axiom.Hosting.Abstractions
dotnet add package Microsoft.Extensions.Hosting
Integrate Axiom into your application with just two calls:
var builder = Host.CreateApplicationBuilder(args);
// Configure Axiom and its modules.
await builder.ConfigureApplicationAsync();
var host = builder.Build();
// Initialize the application and its modules.
await host.InitializeApplicationAsync();
await host.RunAsync();
That's it! Axiom discovers and configures your modules during application setup, then initializes them when the host starts.
Explore the Getting started guide for more details.
Status and community
Axiom is actively evolving. Contributions, feedback, and discussions are welcome.
- Issues: GitHub Issues
- Discussions: Discord
- Community: Reddit
- Packages: NuGet
License
The open-source core, everything outside /enterprise, is licensed under the MIT License.
Enterprise packages use the PolyForm Internal Use License, with a Commercial License available for commercial distribution.
Explorer des projets similaires
Chargement…