Skip to content

Commit

Permalink
Update documentation on count.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corniel Nobel committed Jun 7, 2023
1 parent ea9ac12 commit 015c244
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Qowaiv.DomainModel/EventBuffer_TId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ internal EventBuffer(TId aggregateId, int offset, int committed, AppendOnlyColle
/// <summary>Gets the committed version of the event buffer.</summary>
public int CommittedVersion { get; }

/// <inheritdoc cref="IReadOnlyCollection{T}.Count" />
/// <summary>Gets the number of events in the event buffer.</summary>
/// <remarks>
/// This number is not the version. It can be lower when the event buffer has
/// been created using an initial version.
/// </remarks>
public int Count => Buffer.Count;

/// <summary>Get all committed events in the event buffer.</summary>
Expand Down

0 comments on commit 015c244

Please sign in to comment.