/// <summary> /// returns commit points in batches /// </summary> /// <param name="storeName"></param> /// <param name="skip">How many commit points to skip over</param> /// <param name="take">Max allowed value is 100</param> /// <returns>A enumeration of commit points.</returns> public IEnumerable <ICommitPointInfo> GetCommitPoints(string storeName, int skip = 0, int take = 100) { try { if (take > 100) { take = 100; } var commitPoints = _serverCore.GetCommitPoints(storeName).Skip(skip).Take(take); // ReSharper disable RedundantEnumerableCastCall // not redundant for SILVERLIGHT build return(commitPoints.Select(c => new CommitPointInfoWrapper(new CommitPointInfo { Id = c.LocationOffset, CommitTime = c.CommitTime, JobId = c.JobId, StoreName = storeName })).Cast <ICommitPointInfo>()); // ReSharper restore RedundantEnumerableCastCall } catch (Exception ex) { Logging.LogError(BrightstarEventId.ServerCoreException, "Error getting commit points for store {0}", storeName); throw new BrightstarClientException("Error getting commit points for store " + storeName + ". " + ex.Message, ex); } }