Skip to content
ferdi kurnaz edited this page Sep 1, 2026 · 4 revisions

FAQ

What is Mediatron?

Mediatron is a lightweight mediator library for .NET. It helps you implement the CQRS pattern and Pub/Sub notifications with minimal setup.

How is Mediatron different from MediatR?

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.

Do I need a specific .NET version?

Mediatron works with modern .NET projects that support Microsoft.Extensions.DependencyInjection. Check the NuGet package page for exact target framework details.

Can one request have more than one handler?

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).

Can a notification have zero handlers?

Yes. Publishing a notification with no registered handlers will simply do nothing — it will not throw an error.

How do I add logging or validation around my handlers?

Use a Pipeline Behavior. It wraps your handler so you can run code before and after it, without changing the handler. See Pipeline Behaviors.

Where can I report a bug or ask a question?

Please open an issue on the GitHub Issues page.

How can I contribute?

See the Contributing page.

Clone this wiki locally