# VolatileJournalStorage.ReadAsync(IJournalStorageConsumer, CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.journaling/orleans.journaling.volatilejournalstorage/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.journaling/orleans.journaling.volatilejournalstorage/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Journaling/VolatileJournalStorage.cs#L209-L220)

```csharp
public ValueTask ReadAsync(IJournalStorageConsumer consumer, CancellationToken cancellationToken)
```

Reads all journal data belonging to this instance and sends it to `consumer`.

### Parameters

- `consumer` (`IJournalStorageConsumer`): The consumer of ordered raw journal data. Chunk boundaries are not journal-entry boundaries.
- `cancellationToken` (`CancellationToken`): The cancellation token.

### Returns

A `System.Threading.Tasks.ValueTask` representing the operation.
