public IEnumerable <ICommit> GetFrom(string checkpointToken) { var intCheckpoint = IntCheckpoint.Parse(checkpointToken); Logger.Debug(Messages.GettingAllCommitsFromCheckpoint, intCheckpoint.Value); return(TryMongo(() => PersistedCommits .Find(Query.GTE(MongoFields.CheckpointNumber, intCheckpoint.IntValue))) .SetSortOrder(MongoFields.CheckpointNumber) .Select(x => x.ToCommit(_serializer))); }
public IEnumerable <ICommit> GetFrom(string checkpointToken) { Logger.Debug(Resources.GettingAllCommitsFromCheckpoint, checkpointToken); ICheckpoint checkpoint = IntCheckpoint.Parse(checkpointToken); return(_buckets .Values .SelectMany(b => b.GetCommits()) .Where(c => c.Checkpoint.CompareTo(checkpoint) > 0) .OrderBy(c => c.Checkpoint) .ToArray()); }
public ICheckpoint GetCheckpoint(string checkpointToken = null) { return(IntCheckpoint.Parse(checkpointToken)); }
public ICheckpoint GetCheckpoint(string checkpointToken) { return(string.IsNullOrWhiteSpace(checkpointToken) ? new IntCheckpoint(-1) : IntCheckpoint.Parse(checkpointToken)); }
public ICheckpoint ParseCheckpoint(string checkpointValue) { return(IntCheckpoint.Parse(checkpointValue)); }