GitPedia
mayuanyang

mayuanyang/Mediator.Net

A simple mediator for .Net for sending command, publishing event and request response with pipelines supported

18 Releases
Latest: 1mo ago
5.0.0Latest
mayuanyangmayuanyang·1mo ago·May 10, 2026
GitHub

💥 Breaking changes

  • `IMediator` now inherits `IAsyncDisposable` — any code implementing `IMediator` directly must add `DisposeAsync()`. Consumers of `IMediator` are unaffected.

🐛 Bug fixes

  • `MediatorBuilder.RegisterHandlers(Assembly)` now correctly picks up `IStreamCommandHandler<,>` implementors (previously silently skipped, causing `NoHandlerFoundException` at runtime)
  • Fixed broken return value in `RequestPipe.ConnectToHandler` `IAsyncEnumerable` branch (`Task.FromResult(r)` → `r`)
  • `PipeHelper.GetResultFromTask` now throws `InvalidOperationException` with a descriptive message instead of bare `Exception`

📦 Improvements

  • `Mediator` implements `IAsyncDisposable` with async-path fallback via `DisposeAsync()`
  • Removed unnecessary reflection in `ReceiveContext.PublishAsync` — `publishPipe.Connect()` is now called directly through the interface
  • `[EnumeratorCancellation]` added to `ConnectStream` async-iterator methods so cancellation tokens are correctly forwarded to consumers
  • `Count()` LINQ extension replaced with `.Count` property (O(1)) at 4 sites in `CommandReceivePipe` and `RequestPipe`
  • `ReceiveContext.MetaData` uses `??=` operator
  • Internal class `GlobalRececivePipeConfigurator` renamed to `GlobalReceivePipeConfigurator` (typo fix)
  • Full Changelog: https://github.com/mayuanyang/Mediator.Net/compare/4.9.0...5.0.0
4.9.0
mayuanyangmayuanyang·11mo ago·July 19, 2025
GitHub
4.8.0
mayuanyangmayuanyang·2y ago·October 31, 2023
GitHub
4.7.0
mayuanyangmayuanyang·3y ago·September 5, 2022
GitHub
4.6.1
mayuanyangmayuanyang·3y ago·July 19, 2022
GitHub
4.6.0
mayuanyangmayuanyang·3y ago·July 17, 2022
GitHub
4.5.0
mayuanyangmayuanyang·3y ago·July 5, 2022
GitHub
4.4.0
mayuanyangmayuanyang·4y ago·May 17, 2022
GitHub

This is a house keeping release, with Github Actions and GitVersion

4.3.0
mayuanyangmayuanyang·4y ago·May 9, 2022
GitHub
4.2.0
mayuanyangmayuanyang·4y ago·January 22, 2022
GitHub
4.1.0
mayuanyangmayuanyang·4y ago·January 1, 2022
GitHub
4.0.0
mayuanyangmayuanyang·4y ago·June 27, 2021
GitHub

Command can now return

3.0.0
mayuanyangmayuanyang·6y ago·November 30, 2019
GitHub
1.1.23
mayuanyangmayuanyang·8y ago·November 8, 2017
GitHub

Bug fix - Make RequestPipe non blocking to avoid dead lock

1.1.7
mayuanyangmayuanyang·9y ago·April 6, 2017
GitHub

Low down the minimum version of Autofac to 4.0.0 and 4.3.0 for StructureMap

Upgrade to VS20171.1.3
mayuanyangmayuanyang·9y ago·March 27, 2017
GitHub
General bug fix and enhancement1.0.65
mayuanyangmayuanyang·9y ago·February 22, 2017
GitHub

Bug fix Fix dependency scope not being used in PublishPipe and GlobalReceivePipe One event with multi handlers will be await one by one Enhancement Serilog middleware can now take callback to decide "ShouldExecute"

Bug fix for global pipe not hookup with middleware when integrated with IoC container1.0.59
mayuanyangmayuanyang·9y ago·February 19, 2017
GitHub

This release fix the issue that middleware is not fired for global pipe when integrated with IoC container