File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,13 @@ module Read =
1919 | Backward -> store.ReadAllBackwards( startPositionInclusive, msgCount)
2020 |> Async.AwaitTask
2121
22+ let readFromAllStreamAsync ' : IStreamStore -> ReadingDirection -> StartPositionInclusive -> MessageCount -> CancellationToken -> Async < ReadAllPage > =
23+ fun store readingDirection startPositionInclusive msgCount cancellationToken ->
24+ match readingDirection with
25+ | Forward -> store.ReadAllForwards( startPositionInclusive, msgCount, cancellationToken)
26+ | Backward -> store.ReadAllBackwards( startPositionInclusive, msgCount, cancellationToken)
27+ |> Async.AwaitTask
28+
2229 let readFromStreamAsync : IStreamStore -> ReadingDirection -> StreamDetails -> MessageCount -> Async < ReadStreamPage > =
2330 fun store readingDirection streamDetails msgCount ->
2431 match readingDirection with
You can’t perform that action at this time.
0 commit comments