TurboMediator 0.9.2
dotnet add package TurboMediator --version 0.9.2
NuGet\Install-Package TurboMediator -Version 0.9.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TurboMediator" Version="0.9.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TurboMediator" Version="0.9.2" />
<PackageReference Include="TurboMediator" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TurboMediator --version 0.9.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TurboMediator, 0.9.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TurboMediator@0.9.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TurboMediator&version=0.9.2
#tool nuget:?package=TurboMediator&version=0.9.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
๐ TurboMediator
A high-performance, enterprise-grade Mediator library for .NET using Source Generators. Zero reflection, Native AOT compatible, and compile-time validated.
Features
- โก Source Generator โ Compile-time optimized dispatch. Zero reflection, Native AOT compatible, fully trim-safe
- ๐งฉ CQRS โ Commands, Queries, Requests, and Notifications with dedicated handler interfaces
- ๐ Streaming โ Async streaming support for all message types
- ๐ Compile-Time Diagnostics โ Build errors for missing handlers, duplicates, and invalid signatures
- ๐ง Pipeline Behaviors โ Interceptors, pre/post processors, exception handlers, and attribute-based bulk registration
- ๐ก๏ธ Resilience โ Retry, circuit breaker, timeout, fallback, and hedging
- โ
Result Pattern โ Functional error handling with
Result<T>andResult<T, TError>types, pattern matching, and railway-oriented programming - ๐ข Enterprise โ Authorization, multi-tenancy, and deduplication
- โฐ Scheduling โ Cron jobs and recurring job scheduling with cron expressions, interval-based triggers, retry strategies, anti-overlap protection, and EF Core persistence
- ๐ Observability โ OpenTelemetry tracing, metrics, structured logging, correlation IDs, and health checks
- ๐พ Caching โ Response caching with in-memory and custom provider support
- โ Validation โ Built-in lightweight validator with fluent rule builder
- ๐ FluentValidation โ FluentValidation integration for pipeline validation
- ๐พ Persistence โ Transactions, transactional outbox, audit trail, with EF Core support
- ๐ฆ Rate Limiting โ Per-user/tenant/IP throttling with multiple algorithms and bulkhead isolation
- ๐ฉ Feature Flags โ Declarative handler toggling with Microsoft.FeatureManagement integration
- ๐ Saga Orchestration โ Multi-step workflows with automatic compensation on failure
- โ๏ธ State Machine โ Entity lifecycle management with guards, transitions, entry/exit actions, and mediator integration
- ๐ฆ Batching โ Auto-batching of queries for optimized bulk execution
- ๐งช Testing โ FakeMediator, RecordingMediator, handler test base classes, and integration test fixtures
- ๐ฅ๏ธ CLI โ Handler coverage analysis, documentation generation, health checks, and benchmarking
Installation
dotnet add package TurboMediator
Optional packages
dotnet add package TurboMediator.Resilience
dotnet add package TurboMediator.Result
dotnet add package TurboMediator.Observability
dotnet add package TurboMediator.Caching
dotnet add package TurboMediator.Caching.Redis
dotnet add package TurboMediator.Validation
dotnet add package TurboMediator.Enterprise
dotnet add package TurboMediator.FluentValidation
dotnet add package TurboMediator.Persistence
dotnet add package TurboMediator.Persistence.EF
dotnet add package TurboMediator.RateLimiting
dotnet add package TurboMediator.FeatureFlags
dotnet add package TurboMediator.FeatureFlags.FeatureManagement
dotnet add package TurboMediator.DistributedLocking
dotnet add package TurboMediator.DistributedLocking.Redis
dotnet add package TurboMediator.Saga
dotnet add package TurboMediator.Saga.EntityFramework
dotnet add package TurboMediator.Scheduling
dotnet add package TurboMediator.Scheduling.EntityFramework
dotnet add package TurboMediator.StateMachine
dotnet add package TurboMediator.StateMachine.EntityFramework
dotnet add package TurboMediator.Batching
dotnet add package TurboMediator.Testing
dotnet add package TurboMediator.Cli
Documentation
Full documentation, guides, and API reference available at www.turbomediator.com.
Contributing
Contributions are welcome! Please read our contributing guidelines before submitting PRs.
License
MIT License - see LICENSE for details.
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- TurboMediator.Abstractions (>= 0.9.2)
- TurboMediator.SourceGenerator (>= 0.9.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.