コード例 #1
0
        public IEnumerable <DownloadRequest> WhereAfterPosition(TimeSpan position, int?count = null)
        {
            var comparer   = new DownloadRequestComparable(position);
            var startIndex = SearchForInsertIndex(comparer);

            return(count.HasValue
                    ? this.Skip(startIndex).Take(count.Value).ToList()
                    : this.Skip(startIndex).ToList());
        }
コード例 #2
0
        public new void Add(DownloadRequest item)
        {
            var comparable = new DownloadRequestComparable(item.ChunkTimestamp);

            Add(item, comparable);
        }