-
Notifications
You must be signed in to change notification settings - Fork 0
FAQ
Mediatron is a lightweight mediator library for .NET. It helps you implement the CQRS pattern and Pub/Sub notifications with minimal setup.
Mediatron aims to be a smaller, simpler alternative. It focuses only on the core mediator features: sending requests and publishing notifications, with native support for Microsoft.Extensions.DependencyInjection.
Mediatron works with modern .NET projects that support Microsoft.Extensions.DependencyInjection. Check the NuGet package page for exact target framework details.
No. Each request (IRequest / IRequest<TResponse>) must have exactly one handler. If you need multiple handlers to react to the same thing, use a notification instead. See Notifications (Pub/Sub).
Yes. Publishing a notification with no registered handlers will simply do nothing — it will not throw an error.
Use a Pipeline Behavior. It wraps your handler so you can run code before and after it, without changing the handler. See Pipeline Behaviors.
Please open an issue on the GitHub Issues page.
See the Contributing page.