Skip to content

feat!: require explicit transaction opt-in on command handlers - #20

Merged
PANiXiDA merged 2 commits into
mainfrom
feature/handler-transactions
Oct 20, 2026
Merged

PANiXiDA merged 2 commits into
mainfrom
feature/handler-transactions

Conversation

@PANiXiDA

@PANiXiDA PANiXiDA commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Command handlers opt into automatic transactions with IRequireTransaction from PANiXiDA.Core.Application.Persistence. Saving changes and publishing domain events remain independent of the marker.

CommitTransactionBehavior and CleanupTransactionBehavior take THandler as their third generic argument. Mediator adapters must bind the actual handler type and skip transaction behaviors for unmarked handlers. Result propagation, concurrency handling, and cleanup exception semantics are preserved.

The package version remains 5.1. The README contains concise usage guidance. Wolverine must support the new behavior signatures before adopting this package.

Validation: dotnet restore, dotnet format, dotnet build --configuration Release, and dotnet test --configuration Release passed. Release build: 0 warnings and 0 errors. Tests: 309 passed, 0 failed, 0 skipped.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T18:09:31.371515Z 39fca50 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@PANiXiDA

Copy link
Copy Markdown
Contributor Author

@codex

@panixida-sonarqube

Copy link
Copy Markdown

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 39fca50df1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@PANiXiDA
PANiXiDA merged commit 7df3cb5 into main Oct 20, 2026
8 checks passed
@PANiXiDA
PANiXiDA deleted the feature/handler-transactions branch October 20, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants