Axon Docs
GitHub Quickstart

Docs / API Reference

Storage backends

One package per backend. Register exactly one — see Storage backends for how to pick.

AddAxonSqlServerStore

Extension method · GoAxon.Store.SqlServer
void AddAxonSqlServerStore(this IServiceCollection services, string connectionString)

Registers SQL Server-backed job, recurring-job, and instance stores. Run Axon.Store.SqlServer/Schema.sql against the target database first.

AddAxonPostgresStore

Extension method · GoAxon.Store.Postgres
void AddAxonPostgresStore(this IServiceCollection services, string connectionString)

Registers PostgreSQL-backed stores. Run Axon.Store.Postgres/Schema.sql first.

AddAxonMySqlStore

Extension method · GoAxon.Store.MySql
void AddAxonMySqlStore(this IServiceCollection services, string connectionString)

Registers MySQL-backed stores. Run Axon.Store.MySql/Schema.sql first.

AddAxonSQLiteStore

Extension method · GoAxon.Store.SQLite
void AddAxonSQLiteStore(this IServiceCollection services, string connectionString)

Registers SQLite-backed stores. Run Axon.Store.SQLite/Schema.sql first. Single-instance/local-development only — SQLite's single-writer model doesn't support multi-instance dispatch.

AddAxonMongoDbStore

Extension method · GoAxon.Store.MongoDb
void AddAxonMongoDbStore(this IServiceCollection services, string connectionString, string databaseName)

Registers MongoDB-backed stores. connectionString must point at a replica set (even single-node — managed offerings like Atlas already are one). No schema file; collections are created implicitly. Optionally call Axon.MongoDb.Indexes.EnsureIndexesAsync(connectionString, databaseName) once for query performance at scale.