Skip to content

Commit

Permalink
Adding a new convenience method to MartenOps.StartStream(). Closes GH…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Sep 3, 2024
1 parent bde3c53 commit 071e8fa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Persistence/Wolverine.Marten/IMartenOp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,18 @@ public StartStream(string streamKey, params object[] events)
StreamKey = streamKey;
Events.AddRange(events);
}

public StartStream(Guid streamId, IList<object> events)
{
StreamId = streamId;
Events.AddRange(events);
}

public StartStream(string streamKey, IList<object> events)
{
StreamKey = streamKey;
Events.AddRange(events);
}

public StartStream<T> With(object[] events)
{
Expand Down

0 comments on commit 071e8fa

Please sign in to comment.