Пример #1
0
 public static IEnumerable <ICommit> GetFromTo(this IPersistStreams persistStreams, DateTime start, DateTime end)
 {
     if (persistStreams == null)
     {
         throw new ArgumentNullException(nameof(persistStreams));
     }
     return(persistStreams.GetFromTo(Bucket.Default, start, end));
 }
Пример #2
0
 public IEnumerable <ICommit> GetFromTo(string bucketId, DateTime start, DateTime end)
 {
     return(ExecuteHooks(_original.GetFromTo(bucketId, start, end)));
 }
Пример #3
0
 public IEnumerable <ICommit> GetFromTo(Int64 from, Int64 to)
 {
     return(ExecuteHooks(_original.GetFromTo(from, to)));
 }
 public IEnumerable <Commit> GetFromTo(string bucketId, DateTime start, DateTime end)
 {
     return(_persistence.GetFromTo(bucketId, start, end));
 }
Пример #5
0
 public IEnumerable <Commit> GetFromTo(DateTime start, DateTime end)
 {
     return(ExecuteHooks(original.GetFromTo(start, end)));
 }
Пример #6
0
 /// <summary>
 /// Returns a single commit from any bucket.
 /// Wrapper for the <see cref="IPersistStreams.GetFromTo(long, long)"/> function in order to
 /// return a single commit.
 /// </summary>
 /// <param name="persistStreams">The IPersistStreams instance.</param>
 /// <param name="checkpointToken">The checkpoint token that mark the commit to read.</param>
 /// <returns>A single commit.</returns>
 public static ICommit GetCommit(this IPersistStreams persistStreams, Int64 checkpointToken)
 {
     return(persistStreams.GetFromTo(checkpointToken - 1, checkpointToken).SingleOrDefault());
 }
 public IEnumerable <ICommit> GetFromTo(string bucketId, DateTime start, DateTime end)
 {
     return(underlying.GetFromTo(bucketId, start, end));
 }