File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,14 @@ type ReadingDirection =
1010 | Backward
1111
1212module Read =
13+ type private StartPositionInclusive = int64
14+ let readFromAllStreamAsync : IStreamStore -> ReadingDirection -> StartPositionInclusive -> int -> Async < ReadAllPage > =
15+ fun store readingDirection startPositionInclusive msgCount ->
16+ match readingDirection with
17+ | Forward -> store.ReadAllForwards( startPositionInclusive, msgCount)
18+ | Backward -> store.ReadAllBackwards( startPositionInclusive, msgCount)
19+ |> Async.AwaitTask
20+
1321 let readFromStreamAsync : IStreamStore -> ReadingDirection -> StreamDetails -> int -> Async < ReadStreamPage > =
1422 fun store readingDirection streamDetails msgCount ->
1523 match readingDirection with
Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ type StreamDetails =
1313 { streamName: string
1414 version: Version }
1515
16- type AllStreamDetails =
17- { streamName: string
18- startPosition: int }
19-
2016module Helpers =
2117 let toVersion : Version -> int =
2218 function
You can’t perform that action at this time.
0 commit comments