/// <inheritdoc/> ValueTask <TResult> IAuditTrail <IRaftLogEntry> .ReadAsync <TResult>(ILogEntryConsumer <IRaftLogEntry, TResult> reader, long startIndex, long endIndex, CancellationToken token) => ReadAsync(new LogEntryConsumer <IRaftLogEntry, TResult>(reader), startIndex, endIndex, token);
/// <summary> /// Wraps the consumer as a reader of log entries. /// </summary> /// <param name="consumer">The consumer to be wrapped.</param> public LogEntryConsumer(ILogEntryConsumer <TEntry, TResult> consumer) { this.consumer = consumer; OptimizationHint = consumer.OptimizationHint; }