Skip to content
프로젝트

소개

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.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Axiom - the modular .NET application framework

NuGet packages MIT license .NET 11+ Documentation Discord Status: early alpha

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 architecture overview

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

Axiom unit of work lifecycle

Whether an operation starts from an HTTP request, a distributed event, or an explicit [UnitOfWork] boundary, Axiom coordinates it through a single transactional lifecycle:

  1. Save changes.
  2. Dispatch local events.
  3. Commit the transaction.
  4. Invalidate caches.
  5. Execute after-commit hooks.
  6. 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.

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.

관련 프로젝트 살펴보기

불러오는 중…