ReadAsync(IJournalStorageConsumer, Stream, IJournalMetadata?, bool, CancellationToken)
staticextension
public static ValueTask<long> ReadAsync(this IJournalStorageConsumer consumer, Stream input, IJournalMetadata? metadata, bool complete, CancellationToken cancellationToken) Reads all bytes from
input and incrementally supplies them to consumer. Parameters
consumerIJournalStorageConsumer- The journal storage consumer.
inputStream- The stream to read from.
metadataIJournalMetadata?- The metadata associated with the journal data being read, or
nullif no metadata is available. completebool- Whether to notify the consumer that no more data will be supplied. If
false, the consumer must read all supplied bytes. cancellationTokenCancellationToken- The cancellation token.
Returns
The number of bytes read from
input.