Skip to content

v2.0.0-beta.8

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 05 Jan 23:32
· 35 commits to beta since this release
3ebdc28

2.0.0-beta.8 (2025-01-05)

Bug Fixes

  • add a transaction id to evaluations from the domain context (43d3f29)

  • refactor the IAsyncEnumerable out of the saga (3ebdc28)

  • refactor IAsyncEnumerable out of the service handler context (48d5d12)

  • Rename the handle method of a service to "invoke". (383a1e3)

Features

  • refactor command handlers to return an IEnumerable instead of an IResultBase instance. (bd2c2f5)
  • refactor IReason return out of the ICommandHandler.Evaluate method (12a4a09)
  • refactor the saga handler to return an IAsyncEnumerable containing IReasons (e27f095)
  • refactor the service handler evaluate method to return an IAsyncEnumerable containing IReason implementations rather than an IResultBase implementation. (7325de7)

BREAKING CHANGES

  • The ISaga.Evaluate no longer accepts an IAsyncEnumerable as return value. Add reasons through the context.Result property instead.
  • The IServiceHandler.Invoke method no longer accepts an IAsyncEnumerable containing reasons. These should be applied to the context.Result property.
  • Command handlers should now attach result or reason information to the context.Result property.
  • IServiceHandler.Handle renamed to IServiceHandler.Invoke. Naming in handler context objects has changed as well.
  • The ISaga.Evaluate now returns a IAsyncEnumerable rather than a Task
  • The IServiceHandler.Evaluate method should now return a IAsyncEnumerable rather than a Task
  • ICommandHandler implementations now have to return a IEnumerable rather than a IResultBase instance