Skip to content

refactor: name event store repository methods after their effects - #98

Merged
falberthen merged 3 commits into
masterfrom
refactor/event-store-repository-contract
Aug 30, 2026
Merged

refactor: name event store repository methods after their effects #98
falberthen merged 3 commits into
masterfrom
refactor/event-store-repository-contract

Conversation

@falberthen

Copy link
Copy Markdown
Owner

Renames the three IEventStoreRepository<TA> methods to describe their effect on the caller, folds the outbox publish into the commit, and fixes a double-commit bug in the payment and shipment handlers.

Why

The old names described the Marten call being wrapped, not what the caller gets:

Before After What was hidden
FetchStreamAsync FetchForWritingAsync Keeps the IEventStream for the next append
AppendEventsAsync AppendEventsAndCommitAsync Calls SaveChangesAsync; it is the transaction boundary

@falberthen
falberthen merged commit dfe7f5b into master Aug 30, 2026
3 checks passed
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.

1 participant