MonMediator 1.0.0
dotnet add package MonMediator --version 1.0.0
NuGet\Install-Package MonMediator -Version 1.0.0
<PackageReference Include="MonMediator" Version="1.0.0" />
<PackageVersion Include="MonMediator" Version="1.0.0" />
<PackageReference Include="MonMediator" />
paket add MonMediator --version 1.0.0
#r "nuget: MonMediator, 1.0.0"
#:package MonMediator@1.0.0
#addin nuget:?package=MonMediator&version=1.0.0
#tool nuget:?package=MonMediator&version=1.0.0
MonMediator
MonMediator is a self-contained, in-process mediator library for .NET applications. It helps you organize application logic by separating request senders from request handlers, reducing direct dependencies between services, controllers, components, and business workflows.
The package supports common mediator patterns, including commands, queries, notifications, and streaming requests. Requests are dispatched to their corresponding handlers within the same application process, without requiring an external message broker, distributed queue, or additional infrastructure.
MonMediator includes a flexible pipeline system that allows cross-cutting concerns to be executed before and after request handlers. Pipeline behaviors can be used to implement validation, logging, authorization, performance measurement, transaction management, caching, exception handling, and other reusable processing rules.
The notification system supports publishing a single event to multiple handlers, making it suitable for scenarios where several independent operations must respond to the same application event.
Streaming support allows handlers to produce asynchronous sequences of results, which is useful for processing large datasets, incremental responses, background-style workflows, and scenarios where results should be consumed as they become available.
MonMediator also provides dependency-injection scanning, allowing request handlers, notification handlers, stream handlers, pipeline behaviors, and validators to be discovered and registered automatically from one or more assemblies.
Fluent validation capabilities are embedded directly into the package, enabling validation rules to be defined close to the related request models and executed automatically through the mediator pipeline. This reduces repetitive validation code and provides a consistent validation mechanism across the application.
MonMediator is designed for developers who want a lightweight but feature-rich mediator solution with minimal external dependencies. It is suitable for layered applications, modular monoliths, Clean Architecture, CQRS-style implementations, ASP.NET Core applications, background services, desktop applications, and other .NET projects that benefit from loosely coupled request handling.
Key capabilities include:
- In-process request and response handling
- Command and query dispatching
- Multiple-handler notifications
- Asynchronous request processing
- Asynchronous streaming responses
- Configurable pipeline behaviors
- Automatic dependency-injection registration
- Assembly scanning for handlers and validators
- Embedded fluent validation
- Support for reusable cross-cutting concerns
- Reduced coupling between application components
- No external message broker or distributed infrastructure required
MonMediator provides the core building blocks needed to create maintainable, testable, and modular .NET applications while keeping mediator configuration and dependencies contained within a single package.
Installation
dotnet add package MonMediator
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 118 | 8/3/2026 |