コード例 #1
0
 public IList <IPrepareLogRecord <TStreamId> > CreatePrepareLogRecord(TStreamId streamId, int expectedVersion, TStreamId eventType, Guid eventId, long transactionPosition)
 {
     return(new[] {
         PrepareLogRecord.SingleWrite(
             _logFormat.RecordFactory,
             transactionPosition,
             Guid.NewGuid(),
             eventId,
             streamId,
             expectedVersion,
             eventType,
             new byte[0],
             new byte[0],
             DateTime.Now,
             PrepareFlags.IsCommitted
             )
     });
 }
コード例 #2
0
 public IList <IPrepareLogRecord <TStreamId> > CreatePrepareLogRecord(string stream, int expectedVersion, string eventType, Guid eventId, long transactionPosition)
 {
     _logFormat.StreamNameIndex.GetOrAddId(stream, out var streamId, out _, out _);
     return(new[] {
         PrepareLogRecord.SingleWrite(
             _logFormat.RecordFactory,
             transactionPosition,
             Guid.NewGuid(),
             eventId,
             streamId,
             expectedVersion,
             eventType,
             new byte[0],
             new byte[0],
             DateTime.Now,
             PrepareFlags.IsCommitted
             )
     });
 }