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

I have base notification class `public record DomainEvent(DateTimeOffset Timestamp) : INotification;` and several child classes: ` public record RoundCreated(long Id, DateTimeOffset Timestamp) : DomainEvent(Timestamp);` `public record RoundResulted(long Id, WinState? Win,...

One of the philosophy of notification is to notify different handlers at the same time (hopefully). currently what we do is : ```csharp for (int i = 0; i <...

I have an application in clean architecture. I wanted to switch from Mediatr to Mediator for performance reasons. But there is a problem here. The problem is that Mediator forces...

I switched from MediatR to Mediator recently, for sourcegen instead of reflections. Alas, it doesn't seem to support generic handlers, and I have a specific use case for them: ```cs...

When using Mediator on the same project with MassTransit I get the following error: ``` System.Exception: 'Invalid configuration detected for Mediator. Generated code for 'Singleton' lifetime, but got 'Scoped' lifetime...

run notifications handlers in parallel closes https://github.com/martinothamar/Mediator/issues/115

There are some instances where I would like to handle a notification inside of an object instead of in a separate handler like the following. Can this be done? https://github.com/KuraiAndras/MediatR.Courier

The namespace and scope configuration is not respected in v.2.1.7, but in version v2.0.30 it's working fine... ``` var builder = WebApplication.CreateBuilder(...); builder.Services.AddMediator(config => { config.Namespace = "Foo.Generated"; config.ServiceLifetime =...

Things I want to solve/merge in 3.0. To solve these I'll be rewriting the source generation process. I will be starting out in an experimental branch and seek feedback before...

ReadMe states > * `Transient` - handlers registered as transient, `IMediator`/`Mediator`/`ISender`/`IPublisher` still singleton [source](https://github.com/martinothamar/Mediator/blob/294d240f2cfe78c67bdc745cf86e2210325e64ca/README.md?plain=1#L267-L270) but I see the code generated as `Transient` for the Mediator too (version 2.1.7): ```c# services.Add(new...