Пример #1
0
 public DefaultEventIDGenerator(Clock clock)
 {
     _clock          = Check.NotNull(clock, nameof(clock));
     _currentBatchID = BatchID.Empty;
 }
Пример #2
0
 public DefaultEventIDGenerator(EventID lastID, Clock clock)
 {
     _clock          = Check.NotNull(clock, nameof(clock));
     _currentBatchID = Check.NotNull(lastID, nameof(lastID)).BatchID;
 }
Пример #3
0
 private EventID(BatchID batchID, int sequence)
 => (BatchID, Sequence) = (batchID, sequence);