Mediator icon indicating copy to clipboard operation
Mediator copied to clipboard

A high performance implementation of Mediator pattern in .NET using source generators.

Results 38 Mediator issues
Sort by recently updated
recently updated
newest added

As per discussion from https://github.com/martinothamar/Mediator/issues/7#issuecomment-1142088164, performance for large projects is pretty bad for cases where we don't have a statically known type as method parameter (i.e. `ValueTask Send(IRequest request, CancellationToken...

enhancement

See how fast source generation performance is here, if it should be improved etc.

I note that in the documentation you state that: > This library relies on the `Microsoft.Extensions.DependencyInjection`, so it only works with DI containers that integrate with those abstractions. Have you...

Currently don't have these. Not sure I want to add these "by default", as they will slow down all pipelines even if not used, but maybe as a separate package?...

![image](https://user-images.githubusercontent.com/12589359/188519994-61525c49-944b-4dd2-a289-942cf7022223.png) Sorry for the short post, it seems like there is no 'overload' for DI. This causes issues because Microsoft.Identity registers UserManager and such as 'Scoped', while this library by...

Thanks again for a great project. At the moment in Send in Mediator.g.cs the default handler is to ThrowArgumentNullOrInvalidMessage which first casts the message as global::Mediator.IMessage. Since the request doesn't...

I'm in the process of migrating from Mediatr to Mediator (2.0.27-rc). My solution is setup like this: - WebApi (Controllers that send/publish queries and commands) - Application (Defines commands, queries...

This also aligns with latest MediatR version as of change: https://github.com/jbogard/MediatR/pull/772

Solves #115 and #138 * `INotificationPublisher` abstraction similar to that of MediatR, apart from making the interface slightly worse while allowing better performance (avoiding closures, same as for the pipeline...