Exemplo n.º 1
0
 private RillCommit(
     RillReference reference,
     CommitId id,
     SequenceRange sequenceRange,
     Timestamp timestamp,
     IImmutableList <Event> events)
 {
     Id            = id;
     Reference     = reference;
     SequenceRange = sequenceRange;
     Timestamp     = timestamp;
     Events        = events;
 }
Exemplo n.º 2
0
 public static RillCommit From(
     RillReference reference,
     CommitId id,
     SequenceRange sequenceRange,
     Timestamp timestamp,
     IImmutableList <Event> events) => new(reference, id, sequenceRange, timestamp, RequireAtLeastOneEvent(events));