Skip to content

Add expected-version parameter to CommitEventStream #19

Description

@paulirwin

The published EventStream<T> / IEventStreamRepo<T> surface has no way for a caller to assert "I loaded this stream at version N; reject my commit if it has since moved past N." CommitEventStream(EventStream<T>, string? userId, ct) takes no expected/original version, and EventStream<T> exposes no loaded-version or concurrency token. As a result an adapter can only enforce part of optimistic concurrency, and a stale-but-well-formed write is accepted rather than rejected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions