You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add CancellationToken Support to Mediator Pipeline and Handlers (#5) (#6)
* feat: add CancellationToken support to mediator pipeline and handlers (#5)
- Add CancellationToken as optional parameter to IMediatorBus, middleware, and handler interfaces
- Propagate token through pipeline and handlers
- Refactor method signatures to use default parameter values instead of overloads
- Update and add tests to verify cancellation is respected (OperationCanceledException)
- Fix generic type typo (TRespose -> TResponse)
- All tests passing
Closes#5
* refactor: format method signatures for improved readability
Set one param per line in classes:
- DefaultMediatorBus.cs
- IMediatorBus.cs
- IMediatorMiddleware.cs
- ICommandHandler.cs
* refactor: streamline middleware task aggregation for improved clarity
* Upgrade version
---------
Co-authored-by: luysantana <[email protected]>
Co-authored-by: Sergio <[email protected]>
0 commit comments