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 ) }); }
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 ) }); }