Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

NFramework.Mediator

License

The framework-native CQRS / mediator pipeline for NFramework .NET services. It provides command, query, event, and stream dispatch with pipeline behaviors, built for Native AOT through compile-time source generation instead of runtime reflection.


Overview

  • Compile-Time Registration: A source generator emits deterministic handler registration — no runtime assembly scanning.
  • Native AOT Ready: Zero reflection on the dispatch path.
  • Result-Friendly: Designed to carry the Result / Result<T> application flow.
  • Pipeline Behaviors: Cross-cutting concerns (validation, caching, logging, transactions) as composable behaviors.

Projects

Project Description
NFramework.Mediator.Abstractions Command, query, event, stream, and behavior contracts. Zero external dependencies.
NFramework.Mediator.Mediator Mediator dispatch implementation built on the abstractions.
NFramework.Mediator.Mediator.Generators Source generator emitting compile-time handler registration.
NFramework.Mediator.Mediator.Validation.FluentValidation Validation behavior adapter for FluentValidation.

Build

make build

Or directly:

dotnet build NFramework.Mediator.slnx

Test

make test

Or directly:

dotnet test NFramework.Mediator.slnx

Format & Lint

make format
make lint

Setup

make setup

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages