private async Task RemoveExpiredContent(IContentStorage contentStorage, CancellationToken cancellationToken) { await foreach (var page in contentStorage.GetAll(options.ContentCategory, cancellationToken)) { foreach (var item in page.Where(x => x.Timestamp.Add(options.ContentSavePeriod) < DateTimeOffset.UtcNow)) { await contentStorage.Delete(item.Id, options.ContentCategory, cancellationToken); } } }