public static Link Next(ReadAllPage page)
 => new Link(Relations.Next,
             LinkFormatter.FormatForwardLink(StreamId, 20, page.Messages.Max(m => m.Position) + 1));
 public static Link Previous(ReadAllPage page)
 => new Link(Relations.Previous,
             LinkFormatter.FormatBackwardLink(StreamId, 20, page.Messages.Min(m => m.Position) - 1));
Exemple #3
0
 public static Link Feed(ReadStreamMessageOptions options) => new Link(
     Relations.Feed,
     LinkFormatter.FormatBackwardLink($"../{options.StreamId}", 20, StreamVersion.End));
Exemple #4
0
 public static Link Last(ReadStreamPage page) => new Link(
     Relations.Last,
     LinkFormatter.FormatBackwardLink(page.StreamId, 20, StreamVersion.End));
Exemple #5
0
 public static Link Next(ReadStreamPage page) => new Link(
     Relations.Next,
     LinkFormatter.FormatForwardLink(page.StreamId, 20, page.Messages.Max(m => m.StreamVersion) + 1));
Exemple #6
0
 public static Link First(ReadStreamPage page) => new Link(
     Relations.First,
     LinkFormatter.FormatForwardLink(page.StreamId, 20, StreamVersion.Start));