Davish.Sendr is a mediator library for .NET. It dispatches request/response messages and async streams to exactly one handler each, publishes notifications to any number of handlers, and wraps any of them with a decorator pipeline. Handlers can be registered manually or discovered at compile time by a Roslyn source generator; neither path scans assemblies at runtime.

Targets netstandard2.0 and net10.0.

dotnet add package Davish.Sendr

Where to start

Packages at a glance

PackagePurpose
Davish.SendrRequest/response and stream dispatch, notification publishing, decorator pipeline.
Davish.Sendr.AbstractionsContracts only (IRequest, ICommand, IQuery, INotification, ISender, …) for domain assemblies that shouldn’t depend on the DI implementation.
Davish.Sendr.GeneratorsOptional Roslyn source generator for compile-time handler discovery and reflection-free dispatch.

Davish.Sendr.Message, Davish.Sendr.Notification, and Davish.Sendr.Notification.Abstractions are deprecated compatibility packages — see Migrating from deprecated packages and the full package reference.