Skip to content

Conversation

@eneshoxha
Copy link
Contributor

Release of version v1.7: with focus on Cortex.Mediator

  • Make ICommand and ICommandHandler generic (TResult)
  • Update IMediator / Mediator to return TResult from commands
  • Generalize pipeline & logging behaviors to TResult
    • CommandPipelineBehavior
    • LoggingCommandBehavior
    • add LoggingQueryBehavior
  • add Common/Unit.cs to represent “void” command results
  • Update DI helpers (MediatorOptions*, ServiceCollectionExtensions)
  • README updated

BREAKING CHANGE: All command handlers must now implement ICommandHandler<TCommand, TResult>. For commands that previously returned nothing, return Unit.

eneshoxha and others added 11 commits February 8, 2025 15:56
v1/bug/103: Start Pulsar Producer when SinkOperator starts.
Add : new option to add internal or private handlers
Remove TransactionCommandBehavior,
Remove ValidationVommandBahaviour,
Update Logging CommandBehavior to support elapsed time.
v1/feature/118 : Remove default pipelines
- Make ICommand and ICommandHandler generic (TResult)
- Update IMediator / Mediator to return TResult from commands
- Generalize pipeline & logging behaviors to TResult
         - CommandPipelineBehavior
         - LoggingCommandBehavior
         - add LoggingQueryBehavior

- add Common/Unit.cs to represent “void” command results

- Update DI helpers (MediatorOptions*, ServiceCollectionExtensions)

- README updated

BREAKING CHANGE: All command handlers must now implement ICommandHandler<TCommand, TResult>.
For commands that previously returned nothing, return Unit.
feat(mediator:119): add support for command return types (#119)
@eneshoxha eneshoxha added this to the Cortex v1.7 milestone Jul 24, 2025
@eneshoxha eneshoxha self-assigned this Jul 24, 2025
@eneshoxha eneshoxha added the feature This label is in use for minor version increments label Jul 24, 2025
@eneshoxha eneshoxha merged commit 475b75a into v1/main Jul 24, 2025
@eneshoxha eneshoxha deleted the v1.7/release branch July 24, 2025 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature This label is in use for minor version increments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants